in reply to Redirecting Output to shell command from within perl
This hack (somehow) works under win (though with some artefacts* on the console)
$out = join "\n" , 1..100; open PIPE, "| more"; print PIPE $out;
but I don't think you can redirect the final output of your script from within.
Only the parent process should be allowed to do this.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Redirecting Output to shell command from within perl
by BrowserUk (Patriarch) on Feb 17, 2018 at 21:17 UTC | |
by LanX (Saint) on Feb 17, 2018 at 21:58 UTC | |
by BrowserUk (Patriarch) on Feb 18, 2018 at 16:37 UTC | |
by LanX (Saint) on Feb 18, 2018 at 18:08 UTC | |
by BrowserUk (Patriarch) on Feb 19, 2018 at 09:06 UTC | |
|