List::Compare. http://search.cpan.org/search?query=list-compare&mode=all -Chris
-----Original Message----- From: Jim Witte [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 10:15 PM To: [EMAIL PROTECTED] Subject: Program to scan dictionary for words with letters in a particular set? Given a file of words W such as 'cat dog at home ...' (or perhaps read into an array, though that would be a very large array), and a set of letters L (a string 'aoeuidhtns' - perhaps put into a array), how would I write a program to extract all words in W whose letters are all in L? I'm thinking of a program to generate a string of words for a typing-tutor program. Jim Witte [EMAIL PROTECTED] Indiana University CS -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>