C:\Temp>perl -we"print 0+'0 but true'" 0 C:\Temp>perl -we"print 0+'0 and true'" Argument "0 and true" isn't numeric in addition (+) at -e line 1. 0