in reply to Re: Reading binary file in perl having records of different length
in thread Reading binary file in perl having records of different length
Thanks andal. All great suggestions. The binary length suggestion didn't seem to work in my case. I want to capture highest nibble first.
For example, the binary length in hex is 0x03 0x50 so I need to read next 848 bytes. However if I do unpack('s', $buffer) it returns 20483 bytes (reading the binary data as 0x50 0x03).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reading binary file in perl having records of different length
by Anonymous Monk on Jun 17, 2014 at 16:13 UTC | |
by jaypal (Beadle) on Jun 17, 2014 at 16:33 UTC |