good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Equality operatorsby mantadin (Beadle) |
on Apr 25, 2006 at 11:40 UTC ( [id://545537]=note: print w/replies, xml ) | Need Help?? |
As '==' is the numeric equality operator, it doesn't make
sense to use it for strings. For all Strings you should
use eq instead of ==, ne instead of != and cmp instead of <=>.
In Section
Seekers of Perl Wisdom
|
|