Hexadecimal and octal numbers
#An integer with a leading 0 is treated as an octal number. #An integer with a leading 0x (or 0X) is a hexadecimal number. #!/usr/bin/perl -w $hex = 0xFF; $octal = 010; print "0xFF = $hex, 010 = $octal.\n";