http://qs321.pair.com?node_id=180011


in reply to Re: Re: Find and Print Directory Names
in thread s and replace

The reason it only prints out one directory is that you are not pushing the results of your recursive calls to finddir into the @direct array.

next unless ( -d "$root$file" ); $dir = "$root$file"; $dir =~ s/^\Q$config{home}$user{site_id}\E//; push(@direct, $dir); push(@direct, finddir("$root$file"));