in reply to date sorted files into an array

As long as you as using 'ls', why don't you use the '-t' option rather than '-l'? This sorts the files by date, rather than name. Combined with 'tail -n' or 'head -n', it can even get a fixed number for you, if that is what you need. Assuming you are on Unix, of course.

Just a thought.

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee