http://qs1969.pair.com?node_id=795439


in reply to Re^2: What is true and false in Perl?
in thread What is true and false in Perl?

And by the way: You are not doing numeric addition on a string, you are evaluating "0 but true" in numeric context (to 0) - therefore no warning.

That makes no sense. The correct answer is that "0 but true" is special-cased.

$ perl -wle'print 0+"0 abc"' Argument "0 abc" isn't numeric in addition (+) at -e line 1. 0 $ perl -wle'print 0+"0 but true"' 0