That would be the fundamental aspect of logical operations which you have missed.
(A||B) evaluates to true if either A or B are true.
(A&&B) evaluates to true if and only if (iff) A and B are both true.
In reply to Re^2: This is why Perl is so frustrating
by jrsimmon
in thread This is why Perl is so frustrating
by eggmatters
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |