in reply to Reassembling lines and comparing them (was: First Post)

If you can seperate that values your comparing into two arrays (one for each file) then you could do something like this:
grep{$x=$_;grep{$_eq$x}@array1} }@array2;
Which will return a list of all the elements in @array2 that match an element in array1