in reply to Redirecting STDOUT to a FileHandle ?
use IO::Wrap; my $stdout = wraphandle(\*STDOUT); [download]