in reply to •Re: Large scale search and replace with perl -i
in thread Large scale search and replace with perl -i
One small caveat with this neat technique (that I just got bitten by) is that if $^I is set to a wild card (eg. *.bak or orig_*) so that the filename of the backup is edited rather than simply appended, the rename will fail.
I'll hazard a guess as to your respose to this as
<merlyn>Don't do that then. {grin}</merlyn>
but I thought it was worth a mention here :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: •Re: Large scale search and replace with perl -i
by merlyn (Sage) on Apr 20, 2003 at 15:37 UTC |