print join "\n", sort @DirList; #### print join "\n", sort {-M $a <=> -M $b} @DirList;