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)
In reply to Re:{3} Constructing 32-bit hexadecimal integers
by jeroenes
in thread Constructing 32-bit hexadecimal integers
by donfreenut
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |