John W. Krahn wrote:
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 -c -pe "tr/a-e/1-5/"
See `perldoc perlop` for details.
--
Just my 0.00000002 million dollars worth,
Shawn
"For the things we have to learn before we can do them, we learn by doing them."
Aristotle
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/