This small script reads a memory dump that looks like
0x00 0xAB 0xFE 0x10 ...
and converts it into
16 -254 171 0 ...
I needed this to verify some code as I got two different outputs. Not only was the format different, endianess was as well. Converting from hex to int wasn't the problem, it was making Perl to understand that the values were signed ints, not unsigned.
So, really, only the conversion lines are interesting.
#conversion #hexadecimal-numbers #perl