Data::Random::WordList is a module that manages a file containing a list of words.
The module expects each line of the word list file to contain only one word. It could thus be easily used to select random lines from a file, but for coherencys sake, Ill keep referring to each line as a word.
The module uses a persistent filehandle so that there isnt a lot of overhead every time you want to fetch a list of random words. However, its much more efficient to grab multiple words at a time than it is to fetch one word at a time multiple times.
The module also refrains from reading the whole file into memory, so it can be safer to use with larger files.