Convert characters to hex values in perl
I'm using Red Hat 9.0.
This is a perl programming question.
I'm opening up a file that consists of a series of
bytes. I'd like to be able to deal with the character
stream as a series of hex values, not as characters.
Is there any way that I can convert a character into it's hex equivalent. In C, I can use the function
atoi(). I'd like to know if Perl supplies anything
like this function.
thanks
pjz
|