Can anyone tell me why this expression turns out 'true' ?
str1 = '1234567891'
str2 = '1234567890'
if str1 = str2 then
say "they're equal"
else
say "they're not equal"
If I compare 2 strings with lengths between 1 and 9, and the last character is different, it's always false. But when I use strings with a length of 10, it turns out true.
Did I miss something somewhere ?
Thanks....
str1 = '1234567891'
str2 = '1234567890'
if str1 = str2 then
say "they're equal"
else
say "they're not equal"
If I compare 2 strings with lengths between 1 and 9, and the last character is different, it's always false. But when I use strings with a length of 10, it turns out true.
Did I miss something somewhere ?
Thanks....