I don't have a directory tree to test on, but I think you are using preprocess in the wrong manner by returning a set of files. Preprocess should work by returning empty, unless some condition is met. Some pseudocode: ( my logic is probably not syntactically correct, but it shows the idea) :-)
sub preprocess{ if( $File::Find::dir =~ m/advanced/ ){ return $File::Find::prune = 1 } return unless -f $File::Find::name; return unless $File::Find::name =~ m/\.log/; }
In reply to Re: File::find preprocess problem
by zentara
in thread File::find preprocess problem
by nemesdani
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |