in reply to File::Compare::compare() problem

You can view the difference between these files with the diff utility (on unixish systems):
diff -u file1 file2

Maybe that helps you while debugging?