Victor Tsang wrote:
if you want to apply this regex to a single file, using the -i option
(in place editing) might be the quickest way for you.
ie.
perl -pe "tr/[a-e]/[1-5]/g" -i <filename>
$ perl -c -pe "tr/[a-e]/[1-5]/g"
Bareword found where operator expected at -e line 1, near "tr/[a-e]/[1-5]/g"
syntax error at -e line 1, next token ???
-e had compilation errors.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/