http://www.perlmonks.org?node_id=1123622


in reply to Re: Best way to search file
in thread Best way to search file

(...) or perhaps use an Sqlite? database file. If you do the latter, your problem becomes an INNER JOIN.
Or even easier, if the files are small enough to fit in ram, use DBD::RAM which supports both file formats.