Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Finding oldest file in directoryby Eyck (Priest) |
on Oct 19, 2004 at 12:36 UTC ( [id://400494]=note: print w/replies, xml ) | Need Help?? |
Why sort at all? The problem is to find the oldest file, that's it. just walk the list of files, and compare every one to the 'currently newest', this would be the most efficient solution. I'm shocked that people actually suggested Shwartzian Transform and similiarly overgrown solutions to such simple problem.
In Section
Seekers of Perl Wisdom
|
|