semio has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for ways to convert a given hex value to its char equivalent. For example, converting hex 61 should result in char "a", hex 62 should convert to char "b", etc. I spent some time with available functions for converting values, e.g. I looked at perlfunc hex, but it is used for converting from hex to dec. I also looked at perlfunc pack but this didn't appear to present the results I'm looking for.
cheers! -semio
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: converting hex to char
by DamnDirtyApe (Curate) on Aug 19, 2002 at 00:01 UTC | |
•Re: converting hex to char
by merlyn (Sage) on Aug 19, 2002 at 02:37 UTC | |
by semio (Friar) on Aug 19, 2002 at 03:14 UTC | |
by merlyn (Sage) on Aug 19, 2002 at 03:17 UTC | |
Re: converting hex to char
by adrianh (Chancellor) on Aug 19, 2002 at 00:10 UTC | |
Re: converting hex to char
by sauoq (Abbot) on Aug 19, 2002 at 00:40 UTC |
Back to
Seekers of Perl Wisdom