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

Re: "unique" filename?

by quidity (Pilgrim)
on Dec 03, 2000 at 22:22 UTC ( [id://44688]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::MkTemp;
    
    $dir = '.'; # directory to create file in
    $string = mktemp('tempXXXXXX',$dir);
    open(F,$string);
    
  2. or download this
    use File::MkTemp;
    
    $dir = '.'; # directory to create file in
    $fh = mkstemp('tempXXXXXX',$dir);
    print $fh "stuff";
    $fh->close;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found