in reply to Best way to write in Perl
hello fellow monk, yes there is a facility in perl to modify a file (i.e. to do inline replacement) perl -pi -e 's/MONK/SAINT/ig' abc.txt The above file will replace all the instances of MONK to SAINT in the file abc.txt hope it helps, Blessings, a perl Monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Best way to write in Perl
by j1n3l0 (Friar) on Sep 04, 2007 at 09:17 UTC | |
by Prof Vince (Friar) on Sep 04, 2007 at 11:54 UTC |