samedi 31 octobre 2015

Finding all words different by one letter Perl

I'm working on a word chain program, and given two words and a file of words the program finds how to go from one word to the other by only changing one letter at a time(Changing to one word from another based off of the words in the file).

I'm working on a subroutine that will return a list of words from the file that are only different by one letter.

I know I'd probably use regular expressions to find the words and add it to a list. Thanks for any help someone can give.

Aucun commentaire:

Enregistrer un commentaire