First, you would use File::Temp for create your temporary file, instead writing your own algorithm. Second, you would rely on some user session data, for to associate which file is related to that client. Another approach I think would be nice is using (again) File::Temp with your own prefix - for example, /var/log/mytempfiles - and cron to remove old files in that directory every 10 minutes or so.
Update: Corrected some english mistakes :-)
Igor 'izut' Sutton
your code, your rules.
In reply to Re: Deleting a Temp File
by izut
in thread Deleting a Temp File
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |