title: How do I do a full-text search search of flat files with Perl?
body: <p>We have a Perl-based web application whose data originates from a vast repository of flat text files.  Those flat files are placed into a directory on our system, we extensively parse them inserting bits of information into a MySQL database, and subsequently move those files to their archived repository and permanent home (/www/website/archive/*.txt).  Now, we don't parse every single bit of data from these flat files and some of the more obscure data items don't get databased.  </p>
  
  <p>The requirement currently out there is for users to be able to perform a full-text search of the entire flat-file repository from a Perl-generated webpage and bring back a list of hits that they could then click on and open the text files for review.</p>
  
  <p>What is the most elegant, efficient and non CPU intensive method to enable this searching capability?</p>