in reply to delayed print statement?
Turn off buffering by adding this before you print anything:
Read all about it in Suffering from Buffering?$| = 1; or $|++;
--
Check out my Perlmonks Related Scripts like framechat,
reputer, and xNN.
In Section
Seekers of Perl Wisdom