I'm writing a parser for a certain Palm database file and I get to run into all the differences between m68k and the way Perl works.
I extract a dword from a file into $var and I want to turn it into an integer, i.e.:
$i = unpack("V", $var);
Only that unpack doesn't give me a usable number. Perl is giving me the _right_ number compared with a hex editor, but the number I really want is apparently in a different bit order, which I believe is descending order.
How can I unpack that value and change bit order?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |