laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
you could just add an additional integer to your filename, so it will be unique. if you start with 0 and go up, you even have the real order.
generate the filename, test if a file allready exists with this if not create one... you don't need locking for that. anyway, if you open more files than time::hires can show, probably you should change to a database.
ciao UPDATE: you need locking, see beable's reply. In reply to Re: Unique filenames with Time::HiRes
by knoebi
|
|