in reply to Use of uninitialized value in open second time but not first.
It's not an issue of 'spitting warnings at the second opening of a memory file'. $output really is uninitialized, and STDOUT, when its called, is already initialized. So it actually spits a warning the first time.my $output; # this value is unintialized open my $old_stdout, '>&=', \*STDOUT; close STDOUT; # Use of uninitialized value in open at the following line open STDOUT, '>', \$output;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of uninitialized value in open second time but not first.
by kyle (Abbot) on Mar 31, 2007 at 19:33 UTC | |
by Bro. Doug (Monk) on Apr 01, 2007 at 16:29 UTC |