Side note: don't use !/^\.\.?$/ to filter out the current and parent directories. A more robust way is to use direct comparisons: $_ ne '.' and $_ ne '..'
That way you can never be tricked by dodgy files with names like ".\n".
• another intruder with the mooring in the heart of the Perl
In reply to Re: sorting a directories content
by grinder
in thread sorting a directories content
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |