Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Maybe just append a random number Or maybe not. The OP states that the names must be in sequence. Consider two files created in the epoch second 1090225457. The first file is generated with the rand string 0.837 (rounded). Half a second later, still in the same epoch second, another file is created, and rand returns 0.238 (rounded). The second file will sort before the first... The same critism can be made of beable's solution elsewhere in this thread. - another intruder with the mooring of the heat of the Perl In reply to Re^4: Unique filenames with Time::HiRes
by grinder
|
|