in reply to How to find the most recent file?

you might want to try the following algorithm:

  1. assume the newest file was created long ago (1.1.2000) and store that value to a variable $newest_date
  2. pass through all files - using File::Find on your root directory (e.g. C://)
  3. in the callback-funtion check whether the creation-date of the current file is newer than the newest found before ... if yes, update $newest_date and store the new filename

You might want to read the documentataion of File::Find before, e.g. how to get the last-modifued date of the current file ...

HTH, Rata