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

Perl/Basics/Boolean Logic/Bitwise Manipulations/XOR

From NetSec
Jump to: navigation, search
  • ^ - The XOR (exclusive or) operator
 
my $num = 10;
$num = $num ^ 25;
print $num . "\n";