in reply to How can I process large files with while(<>)?
Since my paranoia turns on when I use -pi I often turn off paranoia (a biological process) and do something like
cat bigfile|perl -nle 's/escaped_old_ip/new_ip/g; print;' > newbigfile
You can also process files using the tie command, there are many modules which use it (Tie::). Good luck!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I process large files with while(<>)?
by Aristotle (Chancellor) on Nov 18, 2002 at 00:01 UTC |