in reply to sorting a directories content
print join "\n", sort @DirList;
prints sorted by file/dir name.
print join "\n", sort {-M $a <=> -M $b} @DirList;
prints sorted by modification date.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sorting a directories content
by betterworld (Curate) on Apr 13, 2007 at 13:25 UTC | |
by GrandFather (Saint) on Apr 13, 2007 at 21:48 UTC | |
by ikegami (Patriarch) on Apr 13, 2007 at 22:53 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |