Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: undef-safe equality

by ysth (Canon)
on Apr 22, 2005 at 05:22 UTC ( #450274=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( ($ret->{val1}||"") eq ($this->{val1}||"") ) ...
    
  2. or download this
    if ( defined($ret->{val1}) == defined($this->{val1}) &&
         ($ret->{val1}||"") eq ($this->{val1}||"") ) ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://450274]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2017-03-29 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (343 votes). Check out past polls.