I'd say that this is precisely the situation that Carp is designed for--use carp or croak rather than warn and die, and they'll know which invocation of the function they messed up, which is generally fairly useful information.
Alternatively, set $@, return undef, and let the caller figure out the problem. :-)
In reply to Re: Re: Preffered Error notification?
by ChemBoy
in thread Preferred Error notification?
by RollyGuy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |