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.