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");
In reply to Re: Problems using File::Find
by VSarkiss
in thread Problems using File::Find
by thewalledcity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |