in reply to How do I sort a list chronologically from most recent to last?

You can use shell commands to get the files in chronological order i.e by time stamp and copy those into an array. I assume that only log files are stored in that directory.
@files = `ls -lt | tr -s " " | cut -f9 -d' '`; #@files finally contains files most recent are first
  • Comment on Re: how do I sort a list chronologically from most recent to last?
  • Download Code