Re: if element exists in an array

2016-08-19 Thread wagsworld48 via beginners
But does it need to be an array. Rethink into hash and life could be a little bit easier... Wags ;) WagsWorld Hebrews 4:15 Ph: 408-914-1341 On Aug 18, 2016, 19:41 -0700, kp...@freenet.de, wrote: > Thanks for all the replies. > Yes I found List::Util is a useful toolset. > > > On 2016/8/19 10:00,

Perl script: where was I executed from?

2020-11-21 Thread wagsworld48 via beginners
Mind is blank, but want to know if started with say BBEdit or bash or ? Probably very simple, but at this point, no idea... ;) WagsWorld World of Perl Hebrews 4:15 Ph D:(408)914-1341 Ph M:(408)761-7391

Re: Perl script: where was I executed from?

2020-11-21 Thread wagsworld48 via beginners
#x27; > > Cheers, > Rob > > > On Sun, Nov 22, 2020 at 8:00 AM wagsworld48 via beginners > > wrote: > > > Mind is blank, but want to know if started with say BBEdit or bash or ? > > > > > > Probably very simple, but at this point, no idea... ;) >

Re: Perl script: where was I executed from?

2020-11-21 Thread wagsworld48 via beginners
/20 7:42 PM, wagsworld48 via beginners wrote: > > It was a good idea, but that gives me zsh which is what in this case > > BBEdit uses to execute the script. So with your code of $ENV, then I > > looked at the variables within ENV and picked one that was there for > > BBEdi

Re: Perl script: where was I executed from?

2020-11-21 Thread wagsworld48 via beginners
The only problem I was trying to determine was could i know if I was running from BBEdit dynamically or not? That was the question. No problem, just could I know what environment I was running in. The output was a the Unix output log which up to the last update automatically came to the front of

Trying to set the iCloud directory in Perl, but failing

2021-08-13 Thread wagsworld48 via beginners
I have: my $MyiCloudLoc = q[~/Library/Mobile\ Documents/com~apple~CloudDocs]; Then: chdir($MyiCloudLoc) or die "$!"; Error is “no such file or directory” Yet if I do the following in terminal: Cd  ~/Library/Mobile\ Documents/com~apple~CloudDocs It changes to that directory. Seems simple, but

Re: Trying to set the iCloud directory in Perl, but failing

2021-08-13 Thread wagsworld48 via beginners
Txs. Knew it had to be something simple. I appreciate the help. Have a great weekend… ;) Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Aug 13, 2021, 17:03 -0700, Ken N , wrote: > I remember I once connected to iCloud from perl via their webdav interface

Re: about a regex

2021-12-31 Thread wagsworld48 via beginners
Add ^ as [^a-zA-Z0-9] Though there are probably a number of different ways to approach RegEx… Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Dec 31, 2021, 20:22 -0800, Piper H , wrote: > Hello > > I know [a-zA-Z0-9] means words and numbers. > But what's t