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 |