Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Override tempdir DESTROY

by runrig (Abbot)
on Nov 08, 2012 at 22:52 UTC ( #1003016=note: print w/replies, xml ) Need Help??


in reply to Override tempdir DESTROY

Create a ReleaseAction or a Guard that does the cleanup. You could create another class with a DESTROY method as others suggest, but I think this is more lightweight (or at least a pre-shrink-wrapped way to do the same thing).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003016]
help
Chatterbox?
[Eily]: or the here-doc operator
[Eily]: which is actually how it is parsed in this case
[shmem]: older versions of perl can't guess that "use of <<>> may be implemented someday" :D
Discipulus how much wise my brothers are? ;=)
[karlgoethebier]: thanks ;-
[karlgoethebier]: ...to all for reading the manuals
[shmem]: karlgoethebier: reading? Naah... just grep :-P

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
























    Results (320 votes). Check out past polls.