in reply to Re^2: Finding old copies of files
in thread Finding old copies of files

$known_files{$file}{$size} = 1;

Change that to ...

$known_files{$file}{$size}++;

... and you know how many (possible) duplicates you have found.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)