in reply to char. VS char.
#!/usr/bin/perl my $text = "ABCCBAABCCBA"; my $hash = { A => 'W', B => 'R', C => 'T', }; $text2 = join "", map { $hash->{$_} } split //, $text; print "[$text]\n"; print "[$text2]\n"; [download]