in reply to File::Compare Binary Files
This is a suggestion of another method, rather than a comment on the module you mention. When I want to compare (binary) files I do two things:
- Use stat to get the filesize.
- Use Digest::SHA1 to get a checksum of the file contents.
Sure collisions are possible, but for my cases I find that if the SHA1 hash and file sizes match then the files are identical enough!