jzb has asked for the wisdom of the Perl Monks concerning the following question:
sub change_me{ local $^I = ".bak"; local *ARGV; @ARGV = "some_file"; while (<>) { s/foo/bar/i; print; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: In place edit 5.005_03 vs 5.8.3
by bart (Canon) on Apr 28, 2006 at 20:40 UTC | |
by jzb (Hermit) on Apr 28, 2006 at 21:00 UTC | |
by jzb (Hermit) on May 01, 2006 at 15:26 UTC |