Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: Use of "die" in OO modulesby theguvnor (Chaplain) |
on Jan 19, 2007 at 00:51 UTC ( [id://595392]=note: print w/replies, xml ) | Need Help?? |
I said: a return code to signify what failed; (emphasis added). I fully realise that undef is a return code. It does not, however, carry information about what failed and why. The lack of defined return code is my signal to go off and look at my object/class and get the error. That works for me (and as bryan notes above, is somewhat common in CPAN modules). Your mileage might vary, as they say ;-) [Jon]
In Section
Seekers of Perl Wisdom
|
|