Just another Perl shrine | |
PerlMonks |
Re^3: Reading (and parsing) a byte streamby acid06 (Friar) |
on Mar 06, 2006 at 04:12 UTC ( [id://534632]=note: print w/replies, xml ) | Need Help?? |
Not really. From the article about Endianness at the Wikipedia: Endianness also applies in the numbering of bits within a byte or word. In a consistently big-endian architecture the bits in the word are numbered from the left, bit zero being the most significant bit and bit 7 being the least significant bit in a byte. So endianness should have to do with bit order. Just because the usual way of packing/unpacking little- or big-endian data in Perl (Network and VAX types) does not follow this pattern it doesn't mean it's not correct. acid06 perl -e "print pack('h*', 16369646), scalar reverse $="
In Section
Seekers of Perl Wisdom
|
|