in reply to Compare Two Text Files Based on a String

This really is a classical relational database problem: you have two tables and you must join them on a key-value.

My take on this matter would be to use DBD::CSV. This module can work directly with regular (for any reasonable definition of "regular") CSV-file.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: Compare Two Text Files Based on a String