My general approach is to die when the error is unlikely to be recoverable from, such as a coding error (i.e. missing or invalid parameters, etc.) and to return undef if it is something like a record does not exist. You can find several examples of this in modules on CPAN.
In reply to Re: Using die() in methods
by boftx
in thread Using die() in methods
by v_melnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |