in reply to Re: Win32: Redirect STDOUT to socketin thread Win32: Redirect STDOUT to socket
use IO::Handle; STDOUT->autoflush(1); [download]
select((select(STDOUT), $| = 1)[0]); [download]