open my $stdout_dupe, ">&STDOUT" or die "Failed duplicating STDOUT: $!";