in reply to Best way to compare two files
I would first suggest taking a look at CPAN and then from there taking a lok at Array-Compare and if that doesn't suit your needs take a look at File-Compare . Also you may want to use the SuperSearch feature of this site as there are many posts on the matter.
SUNADMN
USE PERL
USE PERL
In Section
Seekers of Perl Wisdom