in reply to Re^4: file comparison using file open in binary mode.
in thread file comparison using file open in binary mode.

It'll be funnier if you would use hash values as keys and file names as values. Then in order to find if there's same file in another tree you could use something like:

for (keys %hash1) { if (exists $hash2{$_}) { say "Files $hash1{$_} and $hash2{$_} are equal"; } }
(Not tested)