Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
XP is just a number
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-04-20 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls