Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Command Switch -i prints to screen not file (up-guessed)by LanX (Saint) |
on Dec 29, 2020 at 17:36 UTC ( [id://11125945]=note: print w/replies, xml ) | Need Help?? |
It's originally meant for command line use with -e. But you are trying to use it inside a script, right?
UPDATEI 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
In Section
Seekers of Perl Wisdom
|
|