Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

[SOLVED] Throw from within a DESTROY block

by ribasushi (Monk)
on Dec 31, 2011 at 13:17 UTC ( #945741=perlmeditation: print w/replies, xml ) Need Help??

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.


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! :)

  • Comment on [SOLVED] Throw from within a DESTROY block

Replies are listed 'Best First'.
Re: [SOLVED] Throw from within a DESTROY block
by Xiong (Hermit) on Jan 11, 2012 at 00:13 UTC

    I'd really like to see POD.

    I'm not the guy you kill, I'm the guy you buy. —Michael Clayton

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://945741]
Approved by ww
[marioroy]: Discipulus Hubris, that's not me :( :(, I do not know the reason, but was inspired years ago to do MCE. Back then made a promise that I would hang in there no matter the difficulties or hurdles along the way. This is the journey that is almost completed
[choroba]: software is never completed

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-05-26 09:18 GMT
Find Nodes?
    Voting Booth?