I have a few words in a Perl array.
The words will all be the same length. This example uses 3-letter words:
TIP, TOP, TAT, TAP, TEE, TTY
Words are pulled from the array one at a time and “processed” by Perl.
Words containing more than one instance of any character need special handling (TAT...