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";
There is no Extraterrestrial life
There aren't any suitably capable Extraterrestrials
Interstellar travel is too difficult
We're too uncool / not worth the trouble
What do you mean they haven't visited?
Results (551 votes). Check out past polls.