Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Write 2 uint16_t numbers to file in Perl

by AnomalousMonk (Archbishop)
on Jan 05, 2016 at 18:02 UTC ( [id://1151999]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Write 2 uint16_t numbers to file in Perl
in thread Write 2 uint16_t numbers to file in Perl

How does one PACK the "S"hort value "'7360'" into an array item created with: ...

Don't. Please see my reply below (update: and also see this more-complete explanation). Assign 7360 to the array element in question and then re-pack the whole array as an S-formatted string.


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-18 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found