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

Perl/Basics/Boolean Logic/Bitwise Manipulations/XOR

From NetSec
Revision as of 02:46, 22 October 2012 by LashawnSeccombe (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Perl > Basics > Boolean Logic > Bitwise Manipulations > XOR

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