in reply to Switching between output to file and STDOUT

$out = *STDOUT{IO};
or
$out = \*STDOUT;
Boris