laziness, impatience, and hubris | |
PerlMonks |
Re: Perl Unpack Cobol Binary File and Fieldsby soonix (Canon) |
on May 04, 2020 at 18:45 UTC ( [id://11116446]=note: print w/replies, xml ) | Need Help?? |
From what I remember, BINARY (and its synonym COMP-4) would correspond to a signed integer, and 9(4) (i.e. 9999) would fit in 16 bits, so I would vote for 's', or 's>' (explicitly big endian) or 's<' (explicitly little endian). Or maybe, try the 'S' (unsigned) or 'l' (signed long) variants.
In Section
Seekers of Perl Wisdom
|
|