|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: How come undef eq '' ??by eyepopslikeamosquito (Canon) |
| on Jan 30, 2013 at 17:07 UTC ( #1016104=note: print w/ replies, xml ) | Need Help?? |
|
The earlier excellent answers have already answered your question. The best description of the why behind Perl context that I have seen is the free Modern Perl book. I encourage you to read the short opening The Perl Philosophy chapter, which contains a clear description of contexts in Perl. Especially note the "Numeric, String, and Boolean Context" section. See also: Definition of numerically equal and rationale for 'you' == 'me'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||