$int = unpack 'N', $str;
You could also use unpack 'V' but based on your code 'N' is what you need.
In reply to Re: How do I convert a 32 bit unsigned integer to it's decimal value.
by jmcnamara
in thread How do I convert a 32 bit unsigned integer to its decimal value?
by notfred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |