use strict; use warnings; if("test" == 0){ print "in if"; } else { print "in else"; } #### Argument "test" isn't numeric in numeric eq (==) at D:/eclipse/workspace/Tests/shorthand_if/stupid_problem.pl line 4. in if