![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re^2: Exceptions vs Context Objectsby tirwhan (Abbot) |
on Mar 31, 2006 at 08:47 UTC ( #540412=note: print w/replies, xml ) | Need Help?? |
eval is exactly equivalent to the concept of catching exceptions in other (more pompous ;-) languages. What the OP is talking about is returning an exception object in $@ instead of just an error message. This object can then be inspected, modified and rethrown, or what have you, which gives a bit more flexibility in your error handling. Since this seems to be pretty much what the OP is after, I'd say yeah, exceptions are probably the way forward for this module. All dogma is stupid.
In Section
Seekers of Perl Wisdom
|
|