in reply to How can I get -M to work properly?

If DIR is not the current directory, you will need to prepend the path to each filename before the -M test.
$age = -M "$path/$file";

buckaduck