Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl Unpack Cobol Binary File and Fields

by soonix (Canon)
on May 04, 2020 at 18:45 UTC ( [id://11116446]=note: print w/replies, xml ) Need Help??


in reply to Perl Unpack Cobol Binary File and Fields

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-29 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found