The warning is useful since you should be using eq there, but it does indeed return true because those strings do have numerical equivalence when the treated that way.$ perl -Mstrict -Mwarnings -e 'print "foo\n" if "two" == "two";' Argument "two" isn't numeric in numeric eq (==) at -e line 1. Argument "two" isn't numeric in numeric eq (==) at -e line 1. foo
Cheers - L~R
In reply to Re: == and != don't work as expected
by Limbic~Region
in thread == and != don't work as expected
by esharris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |