Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: Reading binary file in perl having records of different length

by jaypal (Beadle)
on Jun 17, 2014 at 15:43 UTC ( #1090162=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Reading binary file in perl having records of different length
in thread Reading binary file in perl having records of different length

Great points!! I think reading one byte at a time is probably the safest. I am a quality assurance engineer and this code won't be ran on production (so I am not reading through a socket where high performance is needed). I will be testing binary files (one at a time) created by my application and have around 60-70 test scenarios that can be automated with this parser that ensures the binary file is constructed correctly.

tell and seek looks interesting. I will go through the docs and some examples. Thanks again for all your help. You've been great!!


Comment on Re^5: Reading binary file in perl having records of different length

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-12-26 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls