Jan 2, 2011, 1:22 PM
Post #3 of 9
I disagree on one point. Strange as it seems, the condition should be TRUE when $numeric = false.
Without strictures, the bare word is treated as a string. The string 'false' is a true value because it is not one of the five false values.
Refer: perldoc perlsyn
Truth and Falsehood
The number 0, the strings '0' and '', the empty list (), and undef
are all false in a boolean context. All other values are true. Negation of a true value by ! or not returns a special false value. When evaluated as a string it is treated as '', but as a number, it is treated as 0.