|
Hi,
i'd like to know how to get hex code of a number.
Ex: 97 => 61
cvv3@yahoo.com
|
|
|
correct me if i'm wrong but it seems like converting hex->number is not preinstalled on perl.
its quite easy to find code that does this though.
|
|
|
there are many ways to do that here is one way.
my $The_Number = 97;
$hex = unpack("H*", pack("N", $The_Number));
print $hex;
print "\n";
print hex($hex); # back to original
|
|
|
|
|
|
|
|
|
// |