D:\Users\Rolf\pm>type call_less.pl open STDOUT, '| tee -i null | more';; print "hello world! $_\n" for 1.. 100; close STDOUT; exit; D:\Users\Rolf\pm>call_less.pl Der Befehl "tee" ist entweder falsch geschrieben oder konnte nicht gefunden werden. D:\Users\Rolf\pm>
Please note that the effect is best seen with small amounts of lines, hence 100.
> but then I wouldn't do it,
Neither would I, but I'm not the OP! :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
Using (and closing) a dedicated PIPE instead of STDOUT solves the issue for me on Win. see Re: Redirecting Output to shell command from within perl (Update "close PIPE")
In reply to Re^5: Redirecting Output to shell command from within perl
by LanX
in thread Redirecting Output to shell command from within perl
by dracut
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |