suneel.reddy has asked for the
wisdom of the Perl Monks concerning the following question:
I have a requirement to compare two large files based on some conditions and create a new file out of those.
These two files are two different layouts, my condition should compare 2nd field of the first file and 5th field of the second and pullout a record from the second file if the IDs matches.
Initially I've done this by loading files into two arrays and do a loop on those and filter.
But my files are very huge - say 1GB , where each have 10 million records, and my execution ran out of memory.
then I tried with Tie::File , but this only saved my memory but not the performance. My process is still running with no signs of ending :)
Can someone help me solving this ??? Its urgent and I'm new to Perl.....