in reply to How to read binary file with variable length in perl

Here we go again How to read a binary file with file header, data and file trailer ?, How to capture data length from the record ?, How to use Convert::ASN1 ?
  • Comment on Re: How to read binary file with variable length in perl

Replies are listed 'Best First'.
Re^2: How to read binary file with variable length in perl
by bh_perl (Monk) on May 05, 2010 at 09:41 UTC
    Hi...

    Thank you very much for your reply.

    Anyway, could somebody clarify either the format is ASN.1 or not because it is contain fix and variable length. Below some sample of the data:
    33 30 33 32 34 34 30 30 30 30 32 32 34 30 20 20 20 20 20 20 30 30 30 47 4c 4d 41 2f 4d 59 35 34 43 4e 41 31 2f 30 49 4e 42 47 4d 4f 20 49 41 42 31 49 20 20 9f a1 0b 00 9f be 00 02 00 16 9f be 01 81 0f 01 55 01 f0 83 18 02 20 10 00 10 00 00 00 01 9f be 19 81 09 00 01 10 60 13 00 13 13 00 9f be 1b 08 02 01 10 ff ff ff ff ff a1 06 82 04 04 00 00 00
      Why don't you just try different libraries that implement asn.1? If most or all of them can read your files, they probably are asn.1. If not, probably not.

      Did you read the advice given to you in your previous questions, such as How to use Convert::ASN1 ? Is there anything you didn't understand?