... as toolic said... or, another way to check:
open (my $OUTFILE,">", $outfile) or die "Could not open $OUTFILE, $!";
And why does that example deal with your outfile? Because, it's a 'really good idea' (©) to check all your opens and closes!
In reply to Re: readline() on closed filehandle
by ww
in thread readline() on closed filehandle
by Jeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |