open my $fh, "+>", undef or die $!; # open a temp file