No such thing as a small change | |
PerlMonks |
Re: Unique filenames with Time::HiResby knoebi (Friar) |
on Jul 19, 2004 at 07:53 UTC ( [id://375477]=note: 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 Section
Seekers of Perl Wisdom
|
|