in reply to Re^6: Declaring Hash entries
in thread Declaring Hash entries

Yeah i did try that, but recieved an error message about expecting $bytes.

Well, you won't get that with the files you posted :) which are small enough to post on perlmonks with Data::Dump::dd() )

But croaking is there to help; for some reason program couldn't read from the file (past the end?) , so program might as well stop instead of making stuff up and generating a bunch of warnings

Replies are listed 'Best First'.
Re^8: Declaring Hash entries
by james28909 (Deacon) on Jan 06, 2015 at 00:29 UTC
    Thats the thing, it has to work for every format file like this, not just the one i posted, that was just a sample of the thousands that are out there. There will be many many others, and if you check the download below you will see a now working file, which is the exact same byte for byte as the non working file in the download link above. I am going to update this code soon to not even use a hash. All the information to parse the file is in the index table
      What? My program works for all the files you posted, it follows the documented format ... it should work for every file that follows the format ... if it doesn't the files are corrupt (not following format) or your harddisk is dying
        when i enter "script.pl file" the code croaks with any of these certain files, i am more than certain the file isnt corrupt. maybe it is because im on windows or missing a module. im using perl 5.16.3. anyway i will continue on with my code. thanks for sharing!