Undefined values are false, and 1 or higher are determined to be true values in boolean context.
Undefined values, 0, and the empty string are false. Everything else is true in boolean context -- even negative numbers.
In reply to Re^2: Why does this hash remove duplicate lines
by chromatic
in thread Why does this hash remove duplicate lines
by kangaroobin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |