in reply to Re^2: Searching text files
in thread Searching text files

There is also File::SortedSeek which I have no experience with, but might be "good enough" if the files are sorted, and would save you from keeping the database in sync with the text files.