in reply to why did i die?

Consider Exception::Class, for example.   It is a little-known fact that die() also accepts an object as a parameter.   Therefore, you can “throw,” and “catch,” a fully self-describing data structure.   (In cases where something might throw a string, wrap that with a catcher that throws an object containing that string.)

Replies are listed 'Best First'.
Re^2: why did i die?
by markov (Scribe) on Apr 02, 2014 at 14:16 UTC

    You do not answer my question: I am not looking for an exception framework. I already have one! And that one does already wrap the string into an object... the problem is that I want to improve that object. The answer to my question would help me with that.