Octal numerals starting with 0x : oct « Data Type « Perl






Octal numerals starting with 0x

   

#!/usr/bin/perl -w  

print "0x30\n";
print "030\n";

   
    
    
  








Related examples in the same category

1.Convert a number with the hex() or oct()
2.Illegal octal number: with 8 inside
3.Octal number
4.Using oct function to convert number to octal numbers
5.oct("178")
6.octal data
7.Reads any kind of integer.