# turn all of the "a" characters into "r"s and all of the "b"s into "s"s, etc. $string =~ tr/abcd/rstu/;