I'm using $File::Find::dir to get the actual directory name. If it matches the $dir regex the directory is ignored.find({ wanted =>sub{ if (! ($File::Find::dir =~ /$dir/)) { print "Found a match: $_\n" if (/$rex/);}} , no_chdir => 1 }, $search_root);
In reply to Re: Ignoring a Directory with File::Find
by Monky Python
in thread Ignoring a Directory with File::Find
by dru145
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |