RE: Perl equivalent of sed -f or awk -f

2008-09-02 Thread Andrew Curry
Perl -p -i -e s/search/replace/extras; FILENAME -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 September 2008 15:06 To: beginners@perl.org Subject: Perl equivalent of sed -f or awk -f I'd like to apply a series of inline edits to a file in Perl. With

Re: Perl equivalent of sed -f or awk -f

2008-09-02 Thread John W. Krahn
[EMAIL PROTECTED] wrote: 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. perl commandfile inputfile I'd prefer not to use sed or awk as

Re: Perl equivalent of sed -f or awk -f

2008-09-02 Thread [EMAIL PROTECTED]
On Sep 2, 10:49 am, [EMAIL PROTECTED] (John W. Krahn) wrote: [EMAIL PROTECTED] wrote: 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