It's also useful if you ARE running with -i and wish to use a different extension for the backup file.{ local ($^I, @ARGV) = ('.bak', @files); while (<>) { s/this/that/; print; } }
In reply to Re: Inplace Editing
by $code or die
in thread Inplace Editing
by tachyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |