in reply to Re: Re: Constructing 32-bit hexadecimal integers
in thread Constructing 32-bit hexadecimal integers
You will have to pad them missing values:
$a = "\001"; #just another hex string $a = ("\000" x (4-length($a))).$a; #Zero pad that string print unpack 'L', $a; #Hey, that's one!
Jeroen
"We are not alone"(FZ)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Constructing 32-bit hexadecimal integers
by tye (Sage) on Apr 12, 2001 at 00:54 UTC |