Path::Class to the rescue! Or to the usage...?
my $parent = Path::Class::Dir->new("/some/dir/path"); my @sub_dirs = grep { $_->is_dir } $parent->children;
In reply to Re: How to list all the subdirectories in a directory
by Your Mother
in thread How to list all the subdirectories in a directory
by oscarjiao
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |