|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: read directoryby TedPride (Priest) |
| on Jul 08, 2006 at 20:07 UTC ( #559953=note: print w/ replies, xml ) | Need Help?? |
|
It might be more efficient to call ls, if the number of files in the directory is large. You certainly don't want to call -M from inside a sort, as shmem suggests.
The -1 modifier forces output to one column, and -t sorts by last time modified.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||