programming-examples/perl/Datatype/hex digit.pl
2019-11-15 12:59:38 +01:00

8 lines
156 B
Perl

$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);