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).
In reply to Re: Guard, Scope::Guard and End defunct in perl 5.12?
by moritz
in thread Guard, Scope::Guard and End defunct in perl 5.12?
by mzedeler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |