|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: How come undef eq '' ??by LanX (Monsignor) |
| on Jan 30, 2013 at 15:49 UTC ( #1016089=note: print w/ replies, xml ) | Need Help?? |
|
For good reasons operators in Perl do type conversions!
Anyway using warnings you'll often get "Use of uninitialized value" messages. I do not understand what your intentions are, but if you wanna test for undef use the designated functions defined or //
EDITEquality Operators in perlop
Binary "==" returns true if the left argument is numerically equal to
the right argument.
...
Binary "eq" returns true if the left argument is stringwise equal to
the right argument.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||