in reply to Re: Re: Prune File Find search
in thread Prune File Find search

Yes ... that's because you changed the regexp in the grep, it should be
preprocess => sub { ## added ^ and $ return grep { not(-d and /^dir(?:One|Two|Three)$/) } @_ },
See. your local perlre for more info on alternations (the | metacharacter), and anchors (as seen by the ^ and $ in the regexp).
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Re: Re: Prune File Find search
by Anonymous Monk on Jul 28, 2003 at 16:33 UTC
    Mr broquaint,

    THANKS!!! It works great and I appreciate all your answers and time. I learned alot off this thread thanks to your help.