Help for this page
Though if you try to re-open C<STDOUT> or C<STDERR> as an "in memory"
file, you have to close it first:
open STDOUT, '>', \$variable or die "Can't open STDOUT: $!";
# close STDOUT; # with this it works
open STDOUT, ">:encoding(cp37)", "foo.out" or die "Cannot redirect STD
print "yadda yadda\n";
www.com | www.net | www.org
Results (118 votes). Check out past polls.