Re: recursive edit tweaks

2003-02-15 Thread John W. Krahn
Ktb wrote: > > Thanks for laying out the following code John. I've learned a few new > tricks for my bag:) There are a couple things I'm confused about. > > 1) I've read about "return" but am still trying to wrap my mind around it. >I understand the two return statements skip if it comes ac

Re: recursive edit tweaks

2003-02-15 Thread ktb
On Sat, Feb 15, 2003 at 12:33:15PM -0800, John W. Krahn wrote: > Ktb wrote: > > > > The program below works as intended. It recursively searches > > directories and changes any instances of "spike.domain" to > > "spike.lib.domain" without making a backup (I will already have the > > directory bac

Re: recursive edit tweaks

2003-02-15 Thread John W. Krahn
Ktb wrote: > > The program below works as intended. It recursively searches > directories and changes any instances of "spike.domain" to > "spike.lib.domain" without making a backup (I will already have the > directory backed up). There are two things I would like to have the > program do that I

Re: recursive edit tweaks

2003-02-15 Thread Wiggins d'Anconia
Wagner, David --- Senior Programmer Analyst --- WGO wrote: ktb wrote: But while you are running the script $0 will always be true. Also from my testing the name in $0 shows the full pathname while what comes out of File::Find is in reference to where you started the processing. So you mig

RE: recursive edit tweaks

2003-02-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
ktb wrote: > The program below works as intended. It recursively searches > directories and changes any instances of "spike.domain" to > "spike.lib.domain" without making a backup (I will already have the > directory backed up). There are two things I would like to have the > program do that I'm

recursive edit tweaks

2003-02-15 Thread ktb
The program below works as intended. It recursively searches directories and changes any instances of "spike.domain" to "spike.lib.domain" without making a backup (I will already have the directory backed up). There are two things I would like to have the program do that I'm having trouble with.