http://qs321.pair.com?node_id=1224471


in reply to Re: Website for small perl scripts
in thread Website for small perl scripts

If file sizes match just compare hashes (Digest::MD5, Digest::MurmurHash).

I don't know anything about MurmurHash, but MD5 has a higher chance of collisions than more modern hash digests. While, in all likelihood, this will not be a problem for this kind of usage, i would still go the recommended path of using something like SHA256 or even better SHA3-512.

See also:

"For me, programming in Perl is like my cooking. The result may not always taste nice, but it's quick, painless and it get's food on the table."