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 . $in, -32))); dec2bin: $out = unpack("B*", pack("N", $in)); dec2hex: $out = unpack("H8", pack("N", $in)); dec2oct: $out = sprintf "%o", $in; hex2bin: $out = unpack("B32", pack("N", hex $in)); hex2dec: $out = hex $in; hex2oct: $out = sprintf "%o", hex $in; oct2bin: $out = unpack("B32", pack("N", oct $in)); oct2dec: $out = oct $in; oct2hex: $out = unpack("H8", pack("N", oct $in)); -----Original Message----- From: billy [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 16, 2038 8:55 PM To: [EMAIL PROTECTED] Subject: help:how to hex2bin,bin2hex,bin2dec,dec2bin are there some commands or function? thanks for your response. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]