in reply to
process file via command line
you are probably looking for something like the -n or -p option. Like
perl -ni.bak -e 'stuff' input_file
[download]
There is a good reference as to the use of these
perlrun
in the documentation.
-enlil
Comment on
Re: process file via command line
Download
Code
In Section
Seekers of Perl Wisdom