The stupid question is the question not asked | |
PerlMonks |
Re^2: Convert to Hexadecimalby sauoq (Abbot) |
on May 17, 2012 at 19:07 UTC ( [id://971154]=note: print w/replies, xml ) | Need Help?? |
$hexlen = printf("\\x%02x\\x%02x", unpack("C2", pack("n", length($string))); (Explanation in reply to OP.)
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|