I am looking at ways to determine which is the latest log file in a directory. What I was thinking of doing was using the -M operator to find the age in days since the file was last modified, pushing the filename and timestamp into a hash and then sorting the array and poping of the first value.