Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Generate a unique ID

by JavaFan (Canon)
on Nov 15, 2010 at 20:35 UTC ( #871574=note: print w/replies, xml ) Need Help??


in reply to Re^2: Generate a unique ID
in thread Generate a unique ID

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://871574]
help
Chatterbox?
Discipulus second time; no questions.. o tempora o mores..

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-11-24 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (354 votes). Check out past polls.

    Notices?