in reply to Perl/TK hex2char - char2hex convertor
in thread Perl/TK hex2char - char2hex convertor

This is probably the wrong thread ... check out converting hex to char instead. Also, the following might be more helpful for what you need:
use strict; use warnings; print char2hex('a'),$/; print hex2char(62),$/; sub char2hex { return sprintf('%x',ord($_[0])); } sub hex2char { return chr(hex($_[0])); }
Goo luck :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)