- or download this
# Find all sub-dirs of $dir
opendir DIR, $dir or die "yaddah:$!";
@subdirs = grep { -d } readdir(DIR);
- or download this
use File::Find;
find( sub {
-d && print $File::Find::name, "\n";
},
$dir );
- or download this
-d $File::Find::name && print $File::Find::name, "\n";