in reply to Command Switch -i prints to screen not file
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Command Switch -i prints to screen not file
by BillKSmith (Monsignor) on Dec 29, 2020 at 21:38 UTC | |
by LanX (Saint) on Dec 29, 2020 at 22:36 UTC | |
by hippo (Archbishop) on Dec 29, 2020 at 23:19 UTC | |
by LanX (Saint) on Dec 30, 2020 at 00:29 UTC |