Perl class to encode and decode objects using Basic Encoding Rules (BER)