Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 contemplating the Monastery: (15)
As of 2014-11-24 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (142 votes), past polls