in reply to Re: How to read list of files based on date ?
in thread How to read list of files based on date ?

Instead of stat() and calculating the age in days yourself, that is returned by the -M operator.
my @wanted = grep -f $_ && -M _ < 1, @files;
or something close to that.