Remember that Perl, like most languages, uses "short-circuit" logical-expression evaluation. If the left-side of an OR condition is True, the right-side is not evaluated, because "True OR anything" is True. Similarly, if the left-side of an AND condition is False, the right-side also is not evaluated.