in reply to Re^2: MD 5 hash comparison/checker
in thread MD 5 hash comparison/checker

(Update: Of course, just using the *n*x "cmp" utility will be a lot easier/quicker.)

He's on Windows (or else use digest::MD5; wouldn't have worked), and it was faster for me to type up the program than two figure out the dos command :)

But if it were a case of looking for duplicates among a large set of files

Indeed, but there's no evidence of that. That's why I asked and suggested an alternative.

Replies are listed 'Best First'.
Re^4: MD 5 hash comparison/checker
by dsheroh (Monsignor) on May 07, 2010 at 12:28 UTC
    Actually, Digest::MD5 works on OS X also:
    $ perl -MDigest::Md5 -e '' $ perl -MDigest::MD5 -e '' $
    The weird mix of "sometimes case-sensitive, sometimes case-insensitive" in OS X is one of my bigger pet peeves about it in theory, but, in practice, it's only bitten me once (when I created two files in the same directory whose names differed only in case and I attempted to delete one, but ended up deleting both).

    Based on other responses by the OP, it's clear that he is using Windows, so your conclusion is correct, even if it's based on a data point which doesn't necessarily support it.

      Thanks, I didn't know