http://perl.plover.com/FAQs/Buffering.html
In reply to Re: ordering of stdout and stderr outputs by Anonymous Monk in thread ordering of stdout and stderr outputs by Special_K