in reply to Using file::find to find dupe dirs
Remove the commented line. It is causing every entry in %dirs. to always be equal to '2'.
sub dir_names { return unless -d; return unless /[IPD]\d{8}$/; # $dirs{$File::Find::name} = 1; ++$dirs{$File::Find::name}; }
|
|---|