programming-examples/perl/Basics/Bitwise Logical Operators.pl
2019-11-18 14:44:36 +01:00

7 lines
334 B
Perl

Operator Example Meaning
& $x & $y Bitwise and
| $x | $y Bitwise or
^ $x ^ $y Bitwise exclusive or
<< $x << 1 Bitwise left shift, integer multiply by two
>> $x >> 1 Bitwise right shift, integer divide by two