|
|
| P is for Practical | |
| PerlMonks |
Re: Regular expression helpby space_monk (Hermit) |
| on Nov 21, 2012 at 18:15 UTC ( #1004981=note: print w/ replies, xml ) | Need Help?? |
|
From what I can tell, you are checking everything after the first field matches. The best way to do this is to put the rows of the first file into a hash and then use the rows of the second file to do a lookup to see if the hash entry exists. The following code is not guaranteed to run (I had a long night last night!) but should show the general idea....
A Monk aims to give answers to those who have none, and to learn from those who know more.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||