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);
|
---|
In Section
Seekers of Perl Wisdom