note
hdb
<p>
My fault. You need to add the path to the filename when testing with -M like this
</p>
<code>my @files = grep {!/\_NSA|d+_\d+\.xml/ && (-M "$path/$_") > $min_age} readdir DIR;
</code>
<p>
I only tested in the current directory where it does not make any difference.</p>
1054264
1054299