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 reply to Re: File name search with regex
by RichardK
in thread File name search with regex
by oldenuf2no
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |