This is a classic - you need to unbuffer your STDOUT. Normally, STDOUT is buffered. The long answer on how to do it is in the FAQ, the short answer is:
$old=select(STDOUT); $|=1; select($old);
CU
Robartes-
In reply to Re: Trouble with Streaming text to STDOUT
by robartes
in thread Trouble with Streaming text to STDOUT
by Maelwys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |