note
John M. Dlugosz
Are you looking for lines exactly the same or just prefixes? If the latter, the "\n" at the end of $testit will get in the way.<p>
In any case, you are overwriting @grepnames each time through the loop, so you will only return the matches from the last line of FILEA.<p>
Try <c>push @grepnames, grep...</c> instead.<p>
And use strict and warnings!<p>
906354
906354