in reply to Re^2: Alpha-search, by letter.
in thread Alpha-search, by letter.

Transliteration is what you're trying to do- map one set of characters onto another set. Specifically, you're trying to implement rot6, a transliteration cipher (not much of an encryption, btw).

tr///, aka y///, uses the second set of characters to replace their counterparts from the first set.

my $word = "abc"; $abc =~ tr/acb/llo/; print $word;
yeilds: lol