in reply to Re: problems redirecting STDOUT and STDERR to a $variable
in thread problems redirecting STDOUT and STDERR to a $variable

I prefer
use IO::Handle qw( ); STDOUT->autoflush(1); STDERR->autoflush(1);