If you're unsure of the Perl syntax, try to work the steps out in English.
Does the text file contain one word per line? Are any words in the file repeated? Is the list of letter pairs (R and S in your example) fixed or something the user provides with each execution?
In reply to Re: Comparing Lines within a Word List
by GotToBTru
in thread Comparing Lines within a Word List
by dominick_t
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |