in reply to READDIR - Sort by Time?
Here is a snippet:
my @e = sort { (stat($a))[9] <=> (stat($b))[9] } <*> ; [download]