my $fh = File::Temp->new(TEMPLATE => "sappy" . $$ . "XXXXXXXX", DIR => $temp_dir, UNLINK => 0) or die "Could not make tempfile: $!";