in reply to == and != don't work as expected
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
|
|---|