Try this:
The anonymous list part is left as an exercise.opendir(DIR, ".") or die ".: $!"; my @list = grep { -d $_ and ! /^\.\.?/ } readdir(DIR); closedir(DIR);
In reply to Re: Create a list of directories without . and ..
by dws
in thread Create a list of directories without . and ..
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |