Questions about this topic? Sign up to ask in the talk tab.

Difference between revisions of "Perl/Basics/Boolean Logic/Bitwise Manipulations/XOR"

From NetSec
Jump to: navigation, search
 
Line 1: Line 1:
* '''^''' - The '''XOR''' (exclusive or) operator
+
<noinclude><font size="-2">'''[[Perl]] > [[Perl/Basics|Basics]] > [[Perl/Basics/Boolean Logic|Boolean Logic]] > [[Perl/Basics/Boolean Logic/Bitwise Manipulations|Bitwise Manipulations]] > XOR'''</font></noinclude>
 +
 
 +
* '''^''' - The '''[[xor]]''' (''exclusive or'') operator
 
{{code|text=<source lang="perl">
 
{{code|text=<source lang="perl">
 
my $num = 10;
 
my $num = 10;

Latest revision as of 03:46, 22 October 2012

Perl > Basics > Boolean Logic > Bitwise Manipulations > XOR

  • ^ - The xor (exclusive or) operator
 
my $num = 10;
$num = $num ^ 25;
print $num . "\n";