in reply to How to convert a binary character to readable ASCII Integers
I think you're looking for ord. That will give you a number, which you can treat as a string if you want to, and Perl will convert it for you.
my @array=("\x00", "\x01", "\x02"); print join q{, }, map { ord } @array; print "\n"; __END__ 0, 1, 2
|
|---|