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

7 lines
334 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +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