in reply to (tye)Re: print sleep print
in thread print sleep print

Note that typically if STDOUT is connected to an interactive terminal, a read from STDIN causes the buffer to STDOUT to be flushed.
#!/usr/bin/perl -w print ">>>> "; sleep 3; <>; __END__
Only after 3 seconds, the ">>>> " appears.

-- Abigail