in reply to Re: comparing elements in 2 hashes...
in thread comparing elements in 2 hashes...
If you are looking to only print out lines that are in both files, then you should read one file into a hash and the other into an array, then code something like this:
Hope this helps.foreach (@myArray) { print "$_\n" if ($myHash{$_}); }
-Ton
-----
Be bloody, bold, and resolute; laugh to scorn
The power of man...
|
|---|