< Perl Programming | Keywords
The and keywordEdit
and is a logical short-circuit AND operator that has a very low precedence, but is otherwise equivalent to &&.
VALUE and VALUE
$a = 5; # 0101 $b = 8; # 1000 print $a and $b . ", " . $a && $b . "\n";
prints only the first variable, as it is not false: