Turn on autoflush in a BEGIN block:
BEGIN { $| = 1 } [download]
In reply to Re: How to flush output to the console? by Anonymous Monk in thread How to flush output to the console? by Anonymous Monk