in reply to on matching content of two text files
Why not use diff?
Or one of the Diff modules on CPAN?