in reply to scrambling all letters in a word until all combinations are found
It sounds like you want a list of all the permutations of the letters in a certain word. CPAN has plenty of modules to do just that, such as List::Permutor, Algorithm::Permute, and so on.
Once you gt the permutations, you check those against a list of valid words. How you get that is up to you, but it's bascially a hash (or database) lookup.
Update: I had the name for List::Permutor wrong. :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: scrambling all letters in a word until all combinations are found (duplicates)
by tye (Sage) on Jan 23, 2006 at 19:29 UTC | |
by brian_d_foy (Abbot) on Jan 23, 2006 at 19:41 UTC | |
by pKai (Priest) on Jan 23, 2006 at 22:22 UTC |