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

Re: File name search with regex

by RichardK (Parson)
on Dec 03, 2015 at 23:38 UTC ( #1149347=note: print w/replies, xml ) Need Help??


in reply to File name search with regex

I find that File::Find::Rule is much easier to use than raw File::Find.

So you could get just the files that you want to process something like this :-

my @logs = File::Find::Rule->file()->name('L*')->mtime("<=$five_days_a +go")->in($dir);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2020-05-29 18:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (170 votes). Check out past polls.

    Notices?