in reply to Perl Unpack Cobol Binary File and Fields
Unless you show us (a hexdump of) your input data, it will be hard to give you meaningful advice.
I haven't had to deal with BINARY type numbers, but I would assume that they are basically just bytes and don't need any special treatment at all? ord should be enough to convert from a byte to the number?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Unpack Cobol Binary File and Fields
by dbarkho14 (Novice) on May 04, 2020 at 18:08 UTC | |
by Corion (Patriarch) on May 04, 2020 at 18:18 UTC | |
by dbarkho14 (Novice) on May 04, 2020 at 20:02 UTC | |
by Corion (Patriarch) on May 04, 2020 at 20:15 UTC | |
by dbarkho14 (Novice) on May 04, 2020 at 21:08 UTC | |
by soonix (Chancellor) on May 04, 2020 at 18:55 UTC | |
by Fletch (Bishop) on May 04, 2020 at 19:48 UTC |