Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

extended path search module

by samson42 (Initiate)
on Jul 29, 2011 at 11:04 UTC ( [id://917436]=perlquestion: print w/replies, xml ) Need Help??

samson42 has asked for the wisdom of the Perl Monks concerning the following question:

I look for a module to find files in the file system. searches should be of the kind: /base/**/subdir/**/*.txt meaning anywhere under /base containing the directory name 'subdir' all files ending wiht .txt.

Is there a module already available to do this search? I poked around in CPAN, but did not find anything and don't like to reinvent the wheel again.

Replies are listed 'Best First'.
Re: extended path search module
by jethro (Monsignor) on Jul 29, 2011 at 11:18 UTC
    File::Find (ok, you have to write the filtering regexp yourself, but all the descending and searching is done for you)
Re: extended path search module
by Anonymous Monk on Jul 29, 2011 at 11:29 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-28 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found