Hi,
The following one-liner replaces 'hola' with 'warnings' in-place in the
script a.t.
./perl -e 's/hola/warnings/gi' -p -i.bak a.t
However, it also creates a backup file a.t.bak with the original text.
Is it possible that if an inplace edit is attempted without creating a
backup file, perl cannot delete the original file to replace with the
modified file and, the original file will be left unmodified ?
Thanks,
Rajarshi.
_________________________________________________________________
How good are you in a Formula One car? Play now
http://server1.msn.co.in/sp05/tataracing/onlinegame.asp
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>