in reply to Screen Output Buffering

Did you turn on STDOUT autoflushing with $|=1 as described in perlvar?