programming-examples/perl/_Basics/Bitwise Logical Operators.pl
2019-11-15 12:59:38 +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