Perl is a little unusual in not having true and false boolean operators. Because of this, and my advancing age, I can never seem to remember what equates to true and false when using Perl, so I decided to create this page.
Perl true false summary
In short, the following elements in Perl will equate to "false":
- The number zero (0) means false.
- The string zero ('0') means false.
- The empty string ('') means false.
Lots of other things equate to "true", including: