But you are trying to use it inside a script, right?
I can't test right now, but my guess is that slurping the whole file first leads to a closing effect.
I'd try editing line by line ...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Command Switch -i prints to screen not file (up-guessed)
by LanX
in thread Command Switch -i prints to screen not file
by BillKSmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |