tr///, aka y///, uses the second set of characters to replace their counterparts from the first set.
yeilds: lolmy $word = "abc"; $abc =~ tr/acb/llo/; print $word;
In reply to Re^3: Alpha-search, by letter.
by blogical
in thread Alpha-search, by letter.
by Andrew_Levenson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |