in reply to Converting Hexadecimal to Decimal notation and vice-versa
I think pack could take care of this as well.
UPDATE: Here's an example1:
$int = unpack("N", pack("H8", substr("0" x 8 . "DEADBEEF", -8)));
Where DEADBEEF is your hex number.
1http://perl.active-venture.com/pod/perlfaq4-datanumber.html
mtfnpy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting Hexadecimal to Decimal notation and vice-versa
by AnomalousMonk (Archbishop) on Oct 18, 2009 at 11:53 UTC | |
by stonecolddevin (Parson) on Oct 19, 2009 at 00:24 UTC | |
by AnomalousMonk (Archbishop) on Oct 19, 2009 at 23:28 UTC | |
by stonecolddevin (Parson) on Oct 19, 2009 at 23:48 UTC | |
by BrowserUk (Patriarch) on Oct 20, 2009 at 01:52 UTC | |
|