I have to process some data by combining two different files. Both of them have two columns that would form a primary key that I can use to match them side-by-side. The files in questions are huge (around 5GB with 20 million rows) so I would need an efficient code. How would I do this in Perl?
I give an example:
If File A contains columns
id, name, lastname, dob, school
File B contains columns
address, id, postcode, dob, email
I would need to join these two files by matching id and dob in the two files to have an output file that would have the columns:
id, name, lastname, dob, school, address, postcode, email