So far it looks for me like you trying to reinvent the wheel. You need to create directory with unique name?
$dir = File::Temp->newdir;
That's it. If you want, you can specify template for the directory name which will include timestamp or whatever you want. If it return failure, it's for some other reason.
In reply to Re^3: Generate a unique ID
by zwon
in thread Generate a unique ID
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |