in reply to Bin\Hex Parsing in Perl ?
pack is your friend, well unpack actually...
Also try looking on CPAN to see if anyone has done whatever you want to do already.