Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Is the documentation for Perl 5.20 'pack' correct?

by RichardK (Parson)
on Jul 07, 2015 at 16:48 UTC ( [id://1133574]=note: print w/replies, xml ) Need Help??


in reply to Is the documentation for Perl 5.20 'pack' correct?

It looks perfectly clear to me.

If you're storing a 32 bit integer, on a little endian machine you get

[byte 1][byte 2][byte 3][byte 4] increasing memory address ->

while on a big endian machine you get

[byte 4][byte 3][byte 2][byte 1] increasing memory address ->

Obviously, big endian is superior and the only true way to store data in memory ;)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-29 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found