You may be interested to know that you can achive the effect of the -i command line switch from inside a script via $^I, for an example see my node here. That way you have more control over what happens than the shebang line. (However, the limitation that ARGVOUT gets closed after the my @input = <>; still applies.)
In reply to Re: Command Switch -i prints to screen not file
by haukex
in thread Command Switch -i prints to screen not file
by BillKSmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |