in reply to my first

print unpack 'H*', pack 'B*', unpack 'b*', pack 'H*', shift
The B and b may be switched.