|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Use time() to create unique IDby benn (Priest) |
| on Sep 16, 2003 at 14:00 UTC ( #291821=note: print w/ replies, xml ) | Need Help?? |
|
There are many ways round this without having to resort to a sleep - the most obvious being Time::HiRes, which (although system-dependant) will give you a much higher resolution than time(). Another way is to add a counter variable, something like (untested)... ...resulting in "12345678-1","12345678-2" etc. Cheers, Ben.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||