C.DeRykus wrote:

If you're permitted a one-liner:

perl -pi.bak -e  '$c=s/Dood\/Dude/ if !$c++'   file

$ perl -c -pi.bak -e  '$c=s/Dood\/Dude/ if !$c++'
Substitution replacement not terminated at -e line 1.



John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction.                   -- Albert Einstein

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to