Dirk80 has asked for the wisdom of the Perl Monks concerning the following question:
I want to parse a big binary file which is grouped into sections (Main Header, Extension Header, PartOne, PartTwo, ...). At the beginning of each section, there is a field which knows the length of this section. At the end I want to read the content of the binary file into objects of corresponding classes, i.e. the main header section of the binary file shall be stored in a blessed hash within package My:MainHeader, the extension header section in a blessed hash within package My::ExtensionHeader, ... .
I'm unsure what is the best way to do it. My suggestions:
What would you recommend and why?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best way to a parse a big binary file
by haukex (Archbishop) on Nov 29, 2019 at 21:40 UTC | |
by Dirk80 (Pilgrim) on Nov 30, 2019 at 19:33 UTC | |
by haukex (Archbishop) on Nov 30, 2019 at 20:47 UTC | |
by Dirk80 (Pilgrim) on Dec 11, 2019 at 15:41 UTC | |
|
Re: Best way to a parse a big binary file
by pwagyi (Monk) on Dec 02, 2019 at 08:27 UTC | |
|
Re: Best way to a parse a big binary file
by Anonymous Monk on Nov 30, 2019 at 01:54 UTC |