hex digit : hex « Data Type « Perl






hex digit

   


$hexdigit = 0xA;

vec ($data, 0, 8) = $hexdigit;
print vec ($data, 3, 1);
print vec ($data, 2, 1);
print vec ($data, 1, 1);
print vec ($data, 0, 1);

   
    
    
  








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.Using hex function to convert octal number to Hexadecimal number
8.hex("FFG")
9.hexadecimal data