Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^4: Use of "die" in OO modules

by theguvnor (Chaplain)
on Jan 19, 2007 at 00:51 UTC ( #595392=note: print w/replies, xml ) Need Help??

in reply to Re^3: Use of "die" in OO modules
in thread Use of "die" in OO modules

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 ;-)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://595392]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2019-11-12 04:36 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (64 votes). Check out past polls.