Using hex function to convert octal number to Hexadecimal number : hex « Data Type « Perl






Using hex function to convert octal number to Hexadecimal number

   

#!/usr/bin/perl -w

print hex("0x30"), "\n";

   
    
    
  








Related examples in the same category

1.hex("10"), hex("0x10")
2.hex("ab")
3.Convert decimal to hex
4.Illegal Hex number with G
5.Hexadecimal and octal numbers
6.Hexadecimal number
7.hex digit
8.hex("FFG")
9.hexadecimal data