|There's more than one way to do things|
Equality operatorsby jkva (Chaplain)
|on Apr 25, 2006 at 11:31 UTC||Need Help??|
jkva has asked for the
wisdom of the Perl Monks concerning the following question:
Wise monks, I lay the following observation before you :1 == 1; is True.
1 == 2; is False.
'a' == 'a'; is True.
'a' == 'b'; is True.
'1' == '1'; is True.
'1' == '2'; is False.
'1' == '1foo'; is True.
'1' == 'foo1'; is False.
This must have something to do with the way the == equality operator works. Is this documented? I could not find it in the perldocs...Does anymonk have enlightenment?