and是一個邏輯短路 AND 運算子,具有非常低的優先順序,但在其他方面等效於&&.
VALUE and VALUE
$a = 5; # 0101 $b = 8; # 1000 print $a and $b . ", " . $a && $b . "\n";
5