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

Re^2: undef-safe equality

by tall_man (Parson)
on Apr 21, 2005 at 19:46 UTC ( #450174=note: print w/ replies, xml ) Need Help??


in reply to Re: undef-safe equality
in thread undef-safe equality

Your second return should be:

return !defined $l && !defined $r;

Otherwise, two undefs will compare unequal.


Comment on Re^2: undef-safe equality
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-09-23 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (234 votes), past polls