in reply to Problems using File::Find
The problem may be with symbolic links. You may be counting the same linked-to directory twice (easy to do when they're all named "class" ;-). Try setting the follow option to see if it makes a difference: find({wanted => \&wanted, follow => 1}, "/mnt/$dir");
|
|---|