use FileHandle; STDOUT->autoflush(1); [download]
In reply to Re: print problem by Foo::Bar in thread print problem by Punto