There are ways of approaching the problem, but you need to state what it is that you are looking for in the comparison.
Do you want to know which lines matched or which ones didn't?
Are the files in a similar sequence with just additional lines or deleted or changed lines? Or do you need to know if any line in one file appears anywhere in the other?
Depending on your answers, an algorithm appropriate maybe forthcoming.
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
|