Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Throw from within a DESTROY blockby ribasushi (Pilgrim) |
on Sep 07, 2011 at 02:04 UTC ( [id://924498]=note: print w/replies, xml ) | Need Help?? |
This can be trivially fixed by closing over an $already_fired flag of some sort to neutralize the DESTROY for a specific object. However I am not interested in an exit() - I want a real trappable exception that will happen during runtime calls to DESTROY (I am not interested in the global destruction case, and can always work around it)
In Section
Seekers of Perl Wisdom
|
|