I think that Perl is taking the string "abcd" and attempting to convert it to a number as you are doing a numerical comparison. Strings that do not start with a digit are numified to 0 (zero) as far as I am aware. Therefore 0 == 0 is true.
Cheers,
JohnGG
In reply to Re: confused: string and number comparison
by johngg
in thread confused: string and number comparison
by wwe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |