If you're on a system that supports it, the easiest way might be to use the Unix diff command.
For a pure Perl solution, you might be able to do something with the Array::Compare module from CPAN.
In reply to Re: How do I compare the lines in two text file?
by davorg
in thread How do I compare the lines in two text file?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |