Some time ago I asked the following question: Throw from within a DESTROY block. The replies I received were... let's say discouraging, however they made me consider the problem in a different light.
I figured I will post the solution as a followup, since the musing culminated in the creation of Exception::Guaranteed, whose 5th incarnation is currently undergoing cpan smoking. There is no POD yet (only devrels available), but the test suite should speak for itself.
Cheers!
UPDATE
I should not ship stuff right before new year. The 0.00_04 version contained a harmless optimization that actually botched the entire thing. 0.00_05 seems to be the ticket however.
Happy new year! :)
In reply to [SOLVED] Throw from within a DESTROY block by ribasushi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |