in reply to trouble getting complex File::Find::Rule search working

File::Find::Rule->name( qr/$thisscalar/ )->or( File::Find::Rule->name( qr/fixedstring1/ ), File::Find::Rule->name( qr/fixedstring2/ ), );

www.jasonkohles.com
We're not surrounded, we're in a target-rich environment!

Replies are listed 'Best First'.
Re^2: trouble getting complex File::Find::Rule search working (simpler)
by tye (Sage) on Apr 22, 2008 at 05:03 UTC

    The docs imply that this simpler method would also work:

    File::Find::Rule->name( qr/$thisscalar/, )->name( qr/fixedstring1/, qr/fixedstring2/, );

    I didn't test it since it wasn't installed here and I find it very unlikely that I'll ever have a use for it. :)

    - tye        

Re^2: trouble getting complex File::Find::Rule search working
by vatheck (Novice) on Apr 22, 2008 at 03:05 UTC
    that is matching the files I wanted, thank you.