in reply to sorting a directories content
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sorting a directories content
by betterworld (Curate) on Apr 13, 2007 at 14:31 UTC |