open my $TEMP, '+>', undef or die "Cannot open temporary file: $!";