in reply to READDIR - Sort by Time?
The quick and dirty way (security, performance and portability restrictions apply):
@dir = `ls -c`; chomp @dir; [download]