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

Perl/Basics/Boolean Logic/Bitwise Manipulations/NOT

From NetSec
Jump to: navigation, search
  • ~ - The NOT operator
 
my $num = 10;
$num = ~$num;
print $num . "\n";