Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

by theguvnor (Chaplain)
on Jan 18, 2007 at 21:27 UTC ( #595352=note: print w/replies, xml ) Need Help??

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

Thanks for your input, though I should have specified one thing more clearly: when I said I return (undef), I meant that I just return;, I don't return undef;. I'm aware of the problem with returning undef explicitly.

(For the unaware: a bare return gives the caller an undef, regardless of whether the call was in scalar or list context. Returning an explicit undef gives the caller undef in scalar context and a list containing one element (undef) in list context.)


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2020-08-15 20:10 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (79 votes). Check out past polls.