![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Understanding Unpack on Decimal Valueby choroba (Cardinal) |
on Nov 01, 2018 at 21:05 UTC ( #1225074=note: print w/replies, xml ) | Need Help?? |
First, check pack: > V An unsigned long (32-bit) in "VAX" (little-endian) order. Have you noticed the pattern?
It works for any input greater or equal to 1000:
Update: For numbers fitting into integer, you can also use
In Section
Seekers of Perl Wisdom
|
|