select changes the default output for print statements, and you've got some print statements after you close WRITE_FH that are then still trying to write to the file. You need to save the original output handle by first saying my $orig_fh = select(WRITE_FH); and then restore it later by saying select($orig_fh); right before or after you close the file.
In reply to Re: print() on closed filehandle WRITE_FH
by haukex
in thread print() on closed filehandle WRITE_FH
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |