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;
In reply to Re^3: How can I access a cross directory set of data files by most recently modified date?
by Fletch
in thread How can I access a cross directory set of data files by most recently modified date?
by SkipHuffman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |