Questions about this topic? Sign up to ask in the talk tab.
Difference between revisions of "Perl/Basics/Boolean Logic/Bitwise Manipulations/Bit Shifting"
From NetSec
AlizaLorenzo (Talk | contribs) (Created page with "* '''<<''' - The '''shift left''' operator * '''>>''' - The '''shift right''' operator {{code|text=<syntaxhighlight lang="perl">my $num = 10; $num = $num << 2; #Shift left two bi...") |
Chantal21I (Talk | contribs) |
(No difference)
|
Revision as of 01:29, 19 July 2012
- << - The shift left operator
- >> - The shift right operator
<syntaxhighlight lang="perl">my $num = 10; $num = $num << 2; #Shift left two bits $num = $num >> 2; #Shift right two bits print $num . "\n"; </syntaxhighlight> |