Perl Monk, Perl Meditation | |
PerlMonks |
Re: Errors in Module - What to do with them.by suaveant (Parson) |
on Sep 26, 2001 at 23:43 UTC ( [id://114920]=note: print w/replies, xml ) | Need Help?? |
Really, in the end, that is up to the error. In *most* cases it is probably best to return the error to the user, but there can be cases, where things just go absolutely wrong that a die isn't a bad idea (and can still be trapped by eval). But probably best is to return errors, and possibly have an option the user can set on whether they want errors to be fatal or not.
- Ant
In Section
Seekers of Perl Wisdom
|
|