Perl Monk, Perl Meditation | |
PerlMonks |
Re: String comparison "\x00" vs. "".by BrowserUk (Patriarch) |
on Jun 08, 2010 at 10:19 UTC ( [id://843641]=note: print w/replies, xml ) | Need Help?? |
Is this somehow configuration dependent(like encoding or something) and only happens on my system? No. It is the way it is.
There are some exceptions to 1 above. If the character contained is numerically zero, then despite having length, the string will conditionally test as false. This is the compromise of "typeless languages" that makes everything work. And then there are (the celebrated) exceptions to the exception, like "0e0" (& "0e-0" & ... ) that the 'type safety' people hate, but that help make the world go around. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|