in reply to Re: Printing byte as 2 Hex characters
in thread Printing byte as 2 Hex characters

Thank you so much, this is so much detail contributed on your side.
  • Comment on Re^2: Printing byte as 2 Hex characters

Replies are listed 'Best First'.
Re^3: Printing byte as 2 Hex characters
by KevinZwack (Chaplain) on May 31, 2012 at 01:21 UTC

    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