I'd like to apply a series of inline edits to a file in Perl.

With sed, I could use "sed -f commandfile inputfile" or in awk, "awk -
f commandfile inputfile", however, I could not find an equivalent in
Perl.  I'd prefer not to use sed or awk as they do not support inline
editing directly.

In Perl, what would be the way to apply a series of multiple inline
edits in this form to an inputfile?

commandfile:
s/searchterm/replaceterm/
s/searchterm2/replaceterm2/
s/searchterm3/replaceterm3/

etc...

Thanks in advance.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to