PerlingTheUK has asked for the wisdom of the Perl Monks concerning the following question:
Every time I call this code I get a message, that I tried to print on a closed filehandle called OUT, yet the "die" command is not called. I am a lost what else could call this error. Any help is appreciated.open OUT, ">".$self->get_csv() || die "Could not open file ".$self->get_csv(). " for writing!"; for ( my $i = 0; $i < @stations; $i++ ){ print OUT [some string]; } close OUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print on closed filehandle
by Fletch (Bishop) on Jul 15, 2004 at 13:17 UTC | |
|
Re: Print on closed filehandle
by dave_the_m (Monsignor) on Jul 15, 2004 at 13:18 UTC | |
by PerlingTheUK (Hermit) on Jul 15, 2004 at 13:26 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |