http://www.perlmonks.org?node_id=986839


in reply to String to hex

Well behind the fair on this one but better late than never :-/

$ perl -E ' > printf qq{0x%04X\n}, $_ for unpack q{n*}, join q{}, > reverse unpack q{(a2)4}, reverse pack q{a8}, q{COM7:};' 0x4F43 0x374D 0x003A 0x0000 $

Cheers,

JohnGG