1N/A# test the logical operators '&&', '||', '!', 'and', 'or', 'not' 1N/A chdir 't' if -d 't'; 1N/Afor my $i
(undef, 0 .. 2, "", "0 but true") { 1N/A for my $j (undef, 0 .. 2, "", "0 but true") { 1N/A ((!$i || !$j) != !($i && $j)) 1N/A or (!($i || $j) != (!$i && !$j)) 1N/A or (!!($i || $j) != !(!$i && !$j)) 1N/A or (!(!$i || !$j) != !!($i && $j)) 1N/A ((!$i || !$j) == !!($i && $j)) 1N/A and (!!($i || $j) == (!$i && !$j)) 1N/A and ((!$i || $j) == ($i && !$j)) 1N/A and (($i || !$j) != (!$i && $j)) 1N/A(($i ||= 1) &&= 3) +=
4;