Your standard output needs to be unbuffered.
Add this line before your loop:
$|++;
And you should get what you want.
See Suffering from buffering (off site) for a thorough explanation.
In reply to Re: sleep problem !
by rnahi
in thread sleep problem !
by prad_intel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |