Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: unique file ID

by ruzam (Curate)
on Apr 30, 2013 at 14:39 UTC ( #1031417=note: print w/ replies, xml ) Need Help??


in reply to unique file ID

my $file_name = time() . "_$$";

Time will be unique to the second and the $$ (the PID) will be unique to each executing script.


Comment on Re: unique file ID
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-12-21 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (103 votes), past polls