in reply to Re^2: How can I access a cross directory set of data files by most recently modified date?
in thread How can I access a cross directory set of data files by most recently modified date?

You can use a schwartzian transform to make it more efficient by only doing the stat call once per file, but other than that there's not that much more to it.

Update: For those playing along at home that'd be @files = map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [ $_, (stat $_)[9] ] } @files;

  • Comment on Re^3: How can I access a cross directory set of data files by most recently modified date?
  • Download Code