pranjali_malode has asked for the wisdom of the Perl Monks concerning the following question:
I have a binary file which contains the data about the drive past errors and failure reasons for the same stored in the binary format. I also have the structure available which tells me what the first 8 bytes are, then the next 4 bytes and so on. I require to get the binary data parse the binary file and display drive related all errors / reasons in meaningful format to the user.
I do not understand what to use - arrays, hashes in perl! I tried doing it through unpack function available in perl but i am stuck on how to get the first 8 bytes then the next 8 bytes and so on.. I will appreciate if someone can help me in this.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Reading Binary files in Perl
by moritz (Cardinal) on Aug 25, 2010 at 08:10 UTC | |
Re: Reading Binary files in Perl
by BrowserUk (Patriarch) on Aug 25, 2010 at 07:42 UTC | |
by pranjali_malode (Initiate) on Aug 25, 2010 at 12:58 UTC | |
by BrowserUk (Patriarch) on Aug 25, 2010 at 13:16 UTC | |
by Corion (Patriarch) on Aug 25, 2010 at 12:59 UTC |
Back to
Seekers of Perl Wisdom