in reply to Create a list of directories without . and ..
Try this:
The anonymous list part is left as an exercise.opendir(DIR, ".") or die ".: $!"; my @list = grep { -d $_ and ! /^\.\.?/ } readdir(DIR); closedir(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: Create a list of directories without . and ..
by merlyn (Sage) on Jun 04, 2002 at 22:20 UTC | |
by dws (Chancellor) on Jun 04, 2002 at 22:34 UTC | |
by Juerd (Abbot) on Jun 04, 2002 at 22:36 UTC | |
by Juerd (Abbot) on Jun 04, 2002 at 22:27 UTC | |
by merlyn (Sage) on Jun 04, 2002 at 22:30 UTC | |
by Juerd (Abbot) on Jun 04, 2002 at 22:34 UTC | |
by Abigail-II (Bishop) on Jun 05, 2002 at 10:57 UTC | |
| |
|
Re: Re: Create a list of directories without . and ..
by webfiend (Vicar) on Jun 04, 2002 at 19:36 UTC |