in reply to Won't print unless newline is included?

If you don't have STDOUT flushing turned on by saying
$| = 1;
the print statements won't flush until there's a newline.