in reply to Re^2: file comparison
in thread file comparison

yes, that works too, but as Perlbotics said, there is a chance to find different files with the same digest(hash).
maybe you could use a bigger digest like SHA-1