Can someone explain what exactly the string "0 but true" means in Perl? As far as I understand, it equals zero in an integer comparison, but evaluates to true when used as a boolean. Is this correct? Is this a normal behavior of the language or is this a special string treated as a special case in the interpreter?
question from:https://stackoverflow.com/questions/5318011/why-does-perl-think-0-but-true-is-a-number