yes sorry, I couldn't reproduce that part anymore.
But $|=1 aka autoflush should guaranty that it's written immediately, please try CTRL-c while sleeping and see if there is any output.
My interest is in reading the output of long running scripts in realtime.
FWIW I tried both quotes " and ' for the -E part.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: (WIN) Autoflush, Perl, Sleep and Powershell
by LanX
in thread (WIN) Autoflush, Perl, Sleep and Powershell
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |