Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Unique filenames with Time::HiResby tachyon (Chancellor) |
on Jul 19, 2004 at 07:55 UTC ( [id://375478]=note: print w/replies, xml ) | Need Help?? |
There are to approaches that come to mind. Use File::CounterFile (the inc() method will return a unique value) or use File::Temp (or just the guts at Avoiding race condition with sysopen) and append the names to an order file (you still really need locking) to maintain your order, then just process the order file top to bottom.
cheers tachyon
In Section
Seekers of Perl Wisdom
|
|