in reply to File::Find should not go in to the spcified directories

You can use the prune feature to skip a subtree.
find(sub { if (...[ is dir to skip ]...) { $File::Find::prune = 1; return; } ... }, $dir);