in reply to Problem with sleep command in perl
Tutorials: Input and Output: Suffering from Buffering?