hubb0r has asked for the wisdom of the Perl Monks concerning the following question:
if ($ret->{'val1'} eq $this->{'val1'}) { ### }
if ($ret->{'val1'} and $ret->{'val1'} eq $this->{'val1'} { ### }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: undef-safe equality
by dragonchild (Archbishop) on Apr 21, 2005 at 19:30 UTC | |
by tall_man (Parson) on Apr 21, 2005 at 19:46 UTC | |
Re: undef-safe equality
by tlm (Prior) on Apr 21, 2005 at 19:50 UTC | |
Re: undef-safe equality (shorter)
by tye (Sage) on Apr 21, 2005 at 20:04 UTC | |
by Roy Johnson (Monsignor) on Apr 21, 2005 at 22:11 UTC | |
Re: undef-safe equality
by ysth (Canon) on Apr 22, 2005 at 05:22 UTC | |
Re: undef-safe equality
by donarb (Beadle) on Apr 23, 2005 at 17:52 UTC | |
Re: undef-safe equality
by hubb0r (Pilgrim) on Apr 22, 2005 at 18:58 UTC |