Perl Monk, Perl Meditation | |
PerlMonks |
Re: Temporary file management in Perl -- is it possible?by mbethke (Hermit) |
on Apr 24, 2013 at 21:15 UTC ( [id://1030534]=note: print w/replies, xml ) | Need Help?? |
If the timer is the only one you need in your program, the most lightweight way would probably be to use File::Temp's UNLINK mechanism (it's a good idea to use this for tempfile creation anyway):
However, you must be sure not to use that tempfile after the timeout. If you can be sure of that, question is why you don't just remove the file when you're done with it?
In Section
Seekers of Perl Wisdom
|
|