|Think about Loose Coupling|
Throw from within a DESTROY blockby ribasushi (Monk)
|on Sep 06, 2011 at 23:41 UTC||Need Help??|
ribasushi has asked for the
wisdom of the Perl Monks concerning the following question:
The problem was solved
The question is very very simple. How do I make this work:
In case it isn't clear - I want to make it so that the "should not reach here" line is never, well reached. In other words - have an "armed" scope guard object throw a real exception. Note: I want an exception, i.e. something trappable. Hence the exit() trick does not apply, since it will kill the entire process.