# the alphabet $a = "abcdefghijklmnopqurtuvwxyz"; # i've discovered that a represents T in the cryptogram, for example $b = "T E "; $c = "the text i want to decipher"; $c =~ tr/$a/$b/;