Help for this page
my $test_output; my $IO = IO::Scalar->new(\$test_output); ... }; $test_output .= $@ if ($@); select(STDOUT);
my $test_output; tie(*STDOUT, 'IO::Scalar', \$test_output); ... }; $test_output .= $@ if ($@); untie(*STDOUT);