There's more than one way to do things | |
PerlMonks |
Re: Hex dump (was: Re^6: Geo Package files)by pryrt (Abbot) |
on Mar 11, 2022 at 20:49 UTC ( [id://11142010]=note: print w/replies, xml ) | Need Help?? |
At least the envelope on that one makes more sense.
<Reveal this spoiler or all in this thread> I get a decoding of the first 8 bites plus envelope of: And the minx,miny are smaller than maxx,maxy -- so whether that's a good thing or not, I don't know. The main takeaways of my input is that you need to use the < for litte-endian and > for big-endian, and that way you won't be guessing in the future whether your system and/or perl have native big- or little-endianness. (Also, even if you'll always be on the same processor, having those directions explicit in the code will make future development/maintenance so much easier.)
In Section
Seekers of Perl Wisdom
|
|