in reply to Fast wordlist lookup for game

Another approach would be to use a DBM file. You could use say the first three letters of the words as the key, so $dbm{aba} might contain 'abash abate ...'. It would be a less complex solution than mysql and should be faster too. Look at DB_File, GDBM_File, NDBM_File etc.