in reply to Undo a STDOUT redirect
open my $old, ">&", "STDOUT" or die $!;
open STDOUT, ">", "test" or die $!;
print "To file...\n";
close STDOUT or die $!;
open STDOUT, ">&", $old or die $!;
print "To console...\n";
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (534 votes). Check out past polls.