The output for this is:use strict; use warnings; if("test" == 0){ print "in if"; } else { print "in else"; }
It seems to me that if a statement is wrong, it should not evaluate to true, what am I missing here ?Argument "test" isn't numeric in numeric eq (==) at D:/eclipse/workspa +ce/Tests/shorthand_if/stupid_problem.pl line 4. in if
In reply to Why is this evaluating to true? by pmarcoen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |