Many languages have a function like this in their standard library that takes some binary string and extracts out integers and such. It's a handy tool!
But what do you do about endianness?
Now, perl is no spring chicken. It's comparatively old, as scripting languages go.
Python and PHP are both 90s languages, Perl is an 80s language.
So it doesn't call them "little" and "big" endian".
I mean, after all, the intel 8086 is famously little-endian and it's one of the most popular computer architectures of all time...
THEY DO, IN FACT, NOT.
but I'm hoping to find that ruby calls them "n" (for Nintendo Entertainment System, which used the little-endian 6502) and "a" (for Amiga, which used the big-endian 680x0)