If I print with a newline at the end the output shows directly.
PS D:\tmp> perl -E'$|=1;print qq($]\n);sleep 10' > tmp.log Terminating on signal SIGINT(2) PS D:\tmp> cat .\tmp.log 5.032001 PS D:\tmp> perl -E'$|=1;print qq($]);sleep 10' > tmp.log Terminating on signal SIGINT(2) PS D:\tmp> cat .\tmp.log PS D:\tmp>
weird ...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: (WIN) Autoflush, Perl, Sleep and Powershell
by LanX
in thread (WIN) Autoflush, Perl, Sleep and Powershell
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |