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.