in reply to Command Switch -i prints to screen not file
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
|
|---|