RE: Commands inside a reg-ex substitution problems

2003-03-07 Thread wiggins
On Fri, 7 Mar 2003 09:29:25 -0600 , Jensen Kenneth B SrA AFPC/DPDMPQ <[EMAIL PROTECTED]> wrote: > Perldoc's aren't available on our systems. Guessing they were not part of > perl4, or were not installed when perl4 was installed. Are the perldocs >

RE: Commands inside a reg-ex substitution problems

2003-03-07 Thread Jensen Kenneth B SrA AFPC/DPDMPQ
1 PM To: Jensen Kenneth B SrA AFPC/DPDMPQ Cc: [EMAIL PROTECTED] Subject: Re: Commands inside a reg-ex substitution problems Jensen Kenneth B SrA AFPC/DPDMPQ wrote: > > The use of quotes may be useless, but it's just more > aesthetically appealing to me. I doubt they really effe

Re: Commands inside a reg-ex substitution problems

2003-03-06 Thread John W. Krahn
Jensen Kenneth B Sra Afpc/Dpdmpq wrote: > > > >$_spath =~ s{^\.} > >{ $path = `pwd`; > > chop $path; > > $path > >}e; > > I wasn't aware I could have multiple commands in there. Had to change it > around so perl4 would be happy, no white space and

Re: Commands inside a reg-ex substitution problems

2003-03-06 Thread John W. Krahn
"Scott R. Godin" wrote: > > John W. Krahn wrote: > > >> ($_pattern, $_start) = (shift, shift); > >> print "Starting search at: $_start\n"; > >> > >> chdir "$_start"; > > > > Useless use of quotes. You should verify that chdir worked. > > > > unless ( chdir $_start ) { > > print STDERR "Canno

Re: Commands inside a reg-ex substitution problems

2003-03-06 Thread Wiggins d'Anconia
Jensen Kenneth B SrA AFPC/DPDMPQ wrote: The use of quotes may be useless, but it's just more aesthetically appealing to me. I doubt they really effect processing speed by any measurable amount anyway :). As just posted, the quotes affect more than speed... perldoc -q "wrong with always quotin

RE: Commands inside a reg-ex substitution problems

2003-03-06 Thread Jensen Kenneth B SrA AFPC/DPDMPQ
>Jensen Kenneth B Sra Afpc/Dpdmpq wrote: >> >> Trying to get this to work on one line, but not having any success. In >> my boredom I re-wrote the find command using perl4, and in tweaking it >> I'm running into a problem. When I type in a starting search path as >> "./something/something"

Re: Commands inside a reg-ex substitution problems

2003-03-06 Thread Jenda Krynicky
From: "Scott R. Godin" <[EMAIL PROTECTED]> > John W. Krahn wrote: > > unless ( opendir( DIR, $_start ) ) { > > print STDERR "Cannot open $_start: $!"; > > exit 1; > > } > > die "Cannot open directory $_start: $!" > unless opendir(DIR, $_start); Just FYI these two are not equiv

Re: Commands inside a reg-ex substitution problems

2003-03-06 Thread Scott R. Godin
John W. Krahn wrote: >> ($_pattern, $_start) = (shift, shift); >> print "Starting search at: $_start\n"; >> >> chdir "$_start"; > > Useless use of quotes. You should verify that chdir worked. > > unless ( chdir $_start ) { > print STDERR "Cannot chdir to $_start: $!"; > exit 1; > }

Re: Commands inside a reg-ex substitution problems

2003-03-06 Thread John W. Krahn
Jensen Kenneth B Sra Afpc/Dpdmpq wrote: > > Trying to get this to work on one line, but not having any success. In my > boredom I re-wrote the find command using perl4, and in tweaking it I'm > running into a problem. When I type in a starting search path as > "./something/something" I want to re