in reply to getting rid of a warning

You can use a lexical file handle:
open(my $save_out, '>&', STDOUT);

Or you can disable the warning in a small scope:

no warnings "once";

Replies are listed 'Best First'.
Re^2: getting rid of a warning
by Anonymous Monk on Jan 21, 2008 at 21:34 UTC
    Thank you, moritz. That was a stupid problem. Indeed, just using a "my $save_out" variable solved it.