I remember seeing this awhile ago on this list and saved it:
bin2dec:
$out = unpack("N", pack("B32", substr("0" x 32 . $in, -32)));
bin2hex:
$out = unpack("H8", pack("B32", substr("0" x 32 . $in, -32)));
bin2oct:
$out = sprintf "%o", unpack("N", pack("B32", substr("0" x 32 . $i
thanks!
- Original Message -
From: "simran" <[EMAIL PROTECTED]>
To: "billy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 10:11 AM
Subject: Re: help:how to hex2bin,bin2hex,bin2dec,dec2bin
> perldoc -f pac
perldoc -f pack
perldoc -f unpack
On Sun, 2038-01-17 at 12:55, billy wrote:
> are there some commands or function?
> thanks for your response.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]