in reply to Trouble with Streaming text to STDOUT

Have you tried setting $| (aka $OUTPUT_AUTOFLUSH) to a nonzero value? That should probably solve your problem, if it's set to a nonzero value, Perl will flush the output buffer every time a print statement is called. See perldoc perlvar for more info.