in reply to Explaining Perl truth to beginners

The way we used to explain it in the Learning Perl class keeps it simple. Convert the value to a string (if it isn't already). If it's the empty string, or a string consisting only of a single 0 digit, it's false. Otherwise, it's true.

Of course, this ignores overloaded values, which can define their own boolean interpretation, but the strategy was written before that was possible.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.