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

Re^2: Unique filehandle -- what is correct?

by i5513 (Pilgrim)
on Dec 11, 2011 at 12:34 UTC ( #942935=note: print w/replies, xml ) Need Help??


in reply to Re: Unique filehandle -- what is correct?
in thread Unique filehandle -- what is correct?

If you want to follow this way (I would recommend File::Temp like Perlbotics did), I would say you about using timestamp inside the name of temp file, for example:

TEMPFILE.20111211133200.rand()

Or even using microseconds precission

But, definitively use File::Temp ;-)

Regards,

  • Comment on Re^2: Unique filehandle -- what is correct?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://942935]
help
Chatterbox?
[Discipulus]: uh neat karl!
[Your Mother]: Both good things to try, thank you!
[karlgoethebier]: Discipulus: see my scratchpad for <<>>...
[Discipulus]: thanks, anyway perl -MO=Deparse -E "while (<<>>) {print;}" gives error to me

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-07-21 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (319 votes). Check out past polls.