in reply to File::Compare Binary Files

Looking at the source reveals that File::Compare actually does a binary comparison (and the doc states that there is a separate compare_text sub). So use that.

BTW diff is also text-oriented, for binary files you'd use the unix utility cmp instead.