in reply to Command Switch -i prints to screen not file

It's originally meant for command line use with -e.

But you are trying to use it inside a script, right?

UPDATE

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

  • Comment on Re: Command Switch -i prints to screen not file (up-guessed)