programming-examples/perl/_Basics/Bitwise Logical Operators.pl

7 lines
334 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
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