Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: File name search with regex

by RichardK (Parson)
on Dec 03, 2015 at 23:38 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1149347]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-18 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found