in reply to Modify file without any temp variable
{ local $^I = ''; #no backup of original! local @ARGV = qw(c:\\tuls\\tuls.txt); while ( <ARGV> ) { s/find/replace/g; print; } }
Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Modify file without any temp variable
by GrandFather (Saint) on Jul 20, 2005 at 09:40 UTC |