We don't bite newbies here... much | |
PerlMonks |
Re: Perl Command Helpby aitap (Curate) |
on Dec 20, 2013 at 20:02 UTC ( [id://1067987]=note: print w/replies, xml ) | Need Help?? |
In addition to the previous comments, Perl can be used like sed to edit files on the fly if ran with the -i switch (often used with -p) in the command line or the hashbang line. If you write your program for -i and -p switches, all your code needs to do is to change the $_ variable which equals to the current line of the file being edited (the code is re-ran on each line sequentially). Read perlrun for more information on this topic.
In Section
Seekers of Perl Wisdom
|
|