http://qs321.pair.com?node_id=534630


in reply to Re: Reading (and parsing) a byte stream
in thread Reading (and parsing) a byte stream

I'm afraid your shot misses—endianness has to do with byte order, not the significance of bits within bytes. So if you have a four-byte number, the most-significant byte may be at the beginning (Big-endian, or $Config{byteorder} eq '4321') or at the end (Little-endian, '1234'), but the values of the bytes themselves don't change.



If God had meant us to fly, he would *never* have given us the railroads.
    --Michael Flanders