in reply to Character in 'b' format wrapped in unpack
givesprintf "%v02X\n", $x;
You created characters that are too large for bytes, and `b` expects the characters to be bytes. MaybeAA.154.AA.154
should besubstr( $x, $_, 1 )) << 1
( substr( $x, $_, 1 )) << 1 ) & 0xFF
|
|---|