in reply to comparing two excel files

I may be wrong but it sounds like you are just looking for a tool rather than really wanting to write Perl code to do this.

Below is a non-Perl tool for comparing Excel files.

Excel Diff