We don't bite newbies here... much | |
PerlMonks |
Re: OT: How to find anagrams?by talexb (Chancellor) |
on Apr 28, 2004 at 18:59 UTC ( [id://348916]=note: print w/replies, xml ) | Need Help?? |
Check out Permute for a useful module and a bunch of relevant links. You could also run an analysis on how often one letter follows another in /usr/share/dict/words and see if you can use that to skip checking certain combinations .. for example, my words file contains no words with the pattern 'lsn' .. which means you could skip any permutation that contains that pattern. Alex / talexb / Toronto Life is short: get busy!
In Section
Seekers of Perl Wisdom
|
|