Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: undef-safe equality

by tall_man (Parson)
on Apr 21, 2005 at 19:46 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found