Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: perl find module

by leocharre (Priest)
on Oct 27, 2009 at 13:34 UTC ( #803433=note: print w/ replies, xml ) Need Help??


in reply to perl find module

use File::Find::Rule; my $finder = File::Find::Rule->file; $finder->name( qr/\.master$/ ); my @abs_files = $finder->in('/home/myself');
The interface can be a little funny, because the next example does the same..
use File::Find::Rule; my @abs_files = File::Find::Rule->file->name( qr/\.master$/ )->in('/ho +me/myself');
Anyhow, this is pretty much the same as in the examples for File::Find::Rule


Comment on Re: perl find module
Select or Download Code
Re^2: perl find module
by Anonymous Monk on Oct 27, 2009 at 15:37 UTC
    findrule dir1 dir2 dir3 -file -name ( .master )

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-07 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls