in reply to Temporary file management in Perl -- is it possible?
if (!fork) { sleep 600; unlink "$gmtstring-$filehandle"; exit; }
Of course, for production, you'll want to test to make sure fork returns defined, probably set $SIG{CHLD}='IGNORE' (see perlipc) and a couple other clean-ups.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|