I'm not sure how applicable it is, but you might want to check out the
Convert::ASN1 module on CPAN. It deals with converting to/from BER-encoded (structured) binary data.
Good luck!
--
WARNING: You are logged into reality as root.
Comment on Re: Decoder and encoder for MMS messages
I fear that it's not easily applicable. ASN.1 is way simpler to parse, in the sense that its TLV format makes it simple to separate stuff. OTOH, MMSs are not as easily dissectable...