in reply to Forking and waiting

I remember that I got once quite confused by this, but sometimes Perl (and DOS :)) buffer output for a complete line or a certain size. Setting autoflush (I think it's $|) for output by using
$| = 1;
does this (but I don't know if it applies).