in reply to
Comparing modification times like make
The Perl Cookbook recommends
Recipe 9.1. Getting and Setting Timestamps
You need to retrieve or alter when a file was last modified (written or changed) or accessed (read).
Use stat to get those times and utime to set them. Both functions are built into Perl:
($READTIME, $WRITETIME) = (stat($filename))[8,9];
utime($NEWREADTIME, $NEWWRITETIME, $filename);
But I do not know how well this does on Windows.
Updated formatting error, to show the code correctly - thanks Perlbotics