in reply to Re^2: Printing byte as 2 Hex characters
in thread Printing byte as 2 Hex characters
Here is one I didn't see listed that I often use for debugging...
printf "0x%*v2.2X\n", ' ', $payload;
If $payload is several bytes of data, this will print something like:
0x01 02 03 CF
|
---|
In Section
Seekers of Perl Wisdom