in reply to hex to ascii, oct to ascii, and back?

Lookup the perldoc on pack and unpack (and printf)

my @hex = unpack ("h*", $ascii_string); foreach my $hex (@hex) { printf ("%c", hex ($hex)); }