local *FH; open (FH, ">/tmp/myprocess.tmp") || die "Cannot open temporary file: $!\n"; ... close FH;