Syntactic Confectionery Delight | |
PerlMonks |
Re^4: the try/catch example from "Programming Perl" analyzedby rsteinke (Scribe) |
on Aug 19, 2004 at 06:15 UTC ( [id://384188]=note: print w/replies, xml ) | Need Help?? |
You could always use some sort of object wrapper to convert the strings into error objects, and hide that in the 'try' code, or some such. That class (or a function that returns different error objects depending on the error string, or something), would know all about the Errno module, and other standard kinds of errors.
Ron Steinke
<rsteinke@w-link.net>
In Section
Meditations
|
|