Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Found a word from a set of lettersby mwah (Hermit) |
on Jan 29, 2008 at 19:11 UTC ( [id://664958]=note: print w/replies, xml ) | Need Help?? |
There have been already many solutions w/word list look up posted to this thread. I'll try to give a 'hands on' example (if you work on a windows box). First, you could download a dictionary from ftp://ftp.ox.ac.uk/pub/wordlists/american/dic-0294.tar.gzand put it in a directory, eg. "c:\dic-0294" (extract it *there*, winrar or winzip should work) Then, create a Perl script like the ones that have been posted in the thread or use one that is tailored for this dictionary, like:
From the *length* of the looked-up word, the name of the dictionary file is built. If you extracted the above archive, then the files with word lengths between 2 and 32 should reside in the current directory. Regards mwa
In Section
Seekers of Perl Wisdom
|
|