Oruse Tie::File; tie my @fh, 'Tie::File', "yourfile" or die("ack - $!"); s/$ARGV[0]/$ARGV[1]/g for @fh;
perl -pi -e 's/THIS/THAT/g' yourfile
_________
broquaint
In reply to Re: Is it possible to alter a flat file in memory?
by broquaint
in thread Is it possible to alter a flat file in memory?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |