in reply to print sleep print

try :
#!/usr/bin/perl -w $|++; print "foo"; sleep 5; print "bar";
and check perlvar for the elaborate meaning of $|... being the autoflush var.

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.