Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: check undef

by davorg (Chancellor)
on Jun 23, 2009 at 09:40 UTC ( #773927=note: print w/replies, xml ) Need Help??


in reply to Re: check undef
in thread check undef

return 0 has a potentially dangerous effect. It will evaluate as true if your subroutine is called in list context. Just a bare return is usually a better idea.

--

See the Copyright notice on my home node.

Perl training courses

Replies are listed 'Best First'.
Re^3: check undef
by ikegami (Pope) on Jun 23, 2009 at 12:16 UTC
    Not better, different. Now it breaks under different circumstances.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://773927]
help
Chatterbox?
[marioroy]: karlgoethebier Ah, am not sure if tiny meditation or a cool use. ;-)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-09-24 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (273 votes). Check out past polls.

    Notices?