You could use a 'preprocess' routine to filter out the unwanted directories. Untested code,
find( { wanted => \&subsearch, preprocess => sub { grep { -f || -d _ && /^AA|BB$/ } @_ } }, $dir );
After Compline,
Zaxo
In reply to Re: Search criteria
by Zaxo
in thread Search criteria
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |