Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
opendir (DIR, $FirstDirToOpen) or die "Couldn't open $FirstDirToOpen: +$!\n"; my @DirList = grep (!/^\.\.?$/, readdir(DIR)); closedir(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sorting a directories content
by GrandFather (Saint) on Apr 12, 2007 at 00:18 UTC | |
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 | |
| |
|
Re: sorting a directories content
by grinder (Bishop) on Apr 12, 2007 at 12:33 UTC | |
by betterworld (Curate) on Apr 13, 2007 at 14:31 UTC | |
|
Re: sorting a directories content
by aquarium (Curate) on Apr 12, 2007 at 00:12 UTC |