Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Sort directories by dateby RichardK (Parson) |
on Sep 28, 2015 at 18:35 UTC ( [id://1143276]=note: print w/replies, xml ) | Need Help?? |
It would have been much easier if you'd created the directory names as 'YYYYMMDD' then they would have sorted naturally with little effort. BTW, opendir/readdir are too low level and always a pain to use unless you really have to. You could try File::Find::Rule instead
In Section
Seekers of Perl Wisdom
|
|