Thank you very much for reply. Even i had the same idea, but could you please tell me how can i compare two such complete files using your idea with less time complexity?
Comment on Re^2: A small question on file comparison
I do not understand what you mean by that. At this point, I think you should show what Perl code you have tried, what output you expect, and your actual output. Please show several examples.