use IO::Handle; STDERR->flush; [download]
In reply to Re: Flush all opened STDIO streams by Anonymous Monk in thread Flush all opened STDIO streams by dmitnin