Help for this page

Select Code to Download


  1. or download this
        my $test_output;
        my $IO = IO::Scalar->new(\$test_output);
    ...
        };
        $test_output .= $@ if ($@);
        select(STDOUT);
    
  2. or download this
        my $test_output;
        tie(*STDOUT, 'IO::Scalar', \$test_output);
    ...
        };
        $test_output .= $@ if ($@);
        untie(*STDOUT);