Tech Tips: Handling Int Vectors in Perl 5
The Tips
Apparently, perldoc -f vec writes 16-bit / 32-bit / 64-bit quantities in big endian byte order, including on little endian architectures such as x86. This may cause issues when writing XS / etc. bindings.
I ended up using the following approach on x86-64 Linux…