Store file 1 in a hash, with the keys being the comparison key between files. Then read file 2, and modify your hash values for each item in file 2. You could either keep in the hash items that are common to the first two files, and then use it as a test for file 3; or you could implement each hash value as a counter, and output any hash key where the counter reaches 3.
In reply to Re: Compare 3 files and print matches in Perl
by Laurent_R
in thread Compare 3 files and print matches in Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |