programming-examples/perl/Datatype/hex digit.pl

8 lines
156 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$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);