Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Creating temporary files without File::Temp

by hatter (Pilgrim)
on Feb 28, 2002 at 15:42 UTC ( #148247=note: print w/ replies, xml ) Need Help??


in reply to Creating temporary files without File::Temp

If the normal module options aren't available (or when you're using a language that doesn't have such things easily available) it's fairly common to use $CTIME.$PID as a unique filename. It's unique as long as you're not going through 65,000 processes a second, and fairly difficult to guess what the name will be on a normal multi-user system.

the hatter


Comment on Re: Creating temporary files without File::Temp
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-07-08 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls