$fh = IO::File->new_tmpfile or die "Unable to make new temp file: $!";