Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Generate a unique IDby JavaFan (Canon) |
on Nov 15, 2010 at 20:35 UTC ( [id://871574]=note: print w/replies, xml ) | Need Help?? |
Problem is, how do you distinguish between failure to create because it exists, and failure to create for some other reason?You'd look at the error code. If the directory exists, the error will be EEXIST, and if it fails for some other reason, the error will be different.
In Section
Seekers of Perl Wisdom
|
|