Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Guard, Scope::Guard and End defunct in perl 5.12?

by moritz (Cardinal)
on Feb 07, 2012 at 15:12 UTC ( [id://952302]=note: print w/replies, xml ) Need Help??


in reply to Guard, Scope::Guard and End defunct in perl 5.12?

I think you misunderstood what those modules do.

What they do is run a closure if a scope is exited with exceptions or control flow. They don't try to execute it under any conditions (and they wouldn't be very successful in case of a SIGKILL or a power failure).

  • Comment on Re: Guard, Scope::Guard and End defunct in perl 5.12?

Replies are listed 'Best First'.
Re^2: Guard, Scope::Guard and End defunct in perl 5.12?
by mzedeler (Pilgrim) on Feb 07, 2012 at 20:22 UTC
    So I'll have to set up a signal handler and do my cleanup in there. I thought I could do a catch-all by using one of the guard modules.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found