in reply to Re: Not printing to file, but print to screen ok
in thread Not printing to file, but print to screen ok

Maybe also check the close

close FH or warn "close failed!";

(close only returns true if IO buffers were successfully flushed)