in reply to need help reading through two large files and output matches and non matches

Maybe it's worth also considering any of File::Sort, File::MergeSort, Sort::Key::Merger or Sort::Merge.

There might be other available modules too. CPAN is stuffed with useful things, it's always worth to check.
  • Comment on Re: need help reading through two large files and output matches and non matches