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

Re^4: Generate a unique ID

by BrowserUk (Pope)
on Nov 16, 2010 at 08:16 UTC ( #871656=note: print w/ replies, xml ) Need Help??


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

use -X

-X uses stat and that takes quite a long time, especially on Win32. It leaves the possibility that between your failed attempt and the return of the test, another program (or another copy of this program), will get in and create the directory.

But as javafan pointed out, that isn't necessary. $! tells me the reason for failure. See Re^4: Generate a unique ID.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^4: Generate a unique ID
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://871656]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-12-28 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls