close $fh or warn "Could not close file";