An even faster solution that sorts files with identical timestamps by name:
# Assumes 32-bit timestamps. print map { substr($_, 4) . "\n" } sort map { pack('Na*', (stat($_))[9], $_) } @DirList;
In reply to Re^4: sorting a directories content
by ikegami
in thread sorting a directories content
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |