The -1 modifier forces output to one column, and -t sorts by last time modified.my @files = split /\n/, `ls -1t`; for (@files) { ... }
In reply to Re: read directory
by TedPride
in thread read directory
by Zcity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |