in reply to
sleep problem !
You forgot to unbuffer the output filehandle. Add
$| = 1;
before printing.
Comment on
Re: sleep problem !
Download
Code
In Section
Seekers of Perl Wisdom