in reply to Re^2: How do I traverse the files in descending order of modification using File::Find
in thread How do I traverse the files in descending order of modification using File::Find

Save the filenames/times in a hash:
my %file_times; # Then in the wanted function: $file_times{$File::Find::name} = -M $_;
Process the files in order of modification time (see sort and How do I sort a hash by value).
  • Comment on Re^3: How do I traverse the files in descending order of modification using File::Find
  • Download Code