Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: trouble getting complex File::Find::Rule search working

by jasonk (Parson)
on Apr 22, 2008 at 02:28 UTC ( [id://682068]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://682068]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-16 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found