I guess that's what you wanted right? If you don't want the absolute path just do push(@DIRS, $_) if -d $_ instead.use File::Find; my @DIR; my $dir = '/home/www/'; find( \&wanted , $dir); sub wanted { push(@DIRS, $File::Find::dir."/".$_) if -d $_; }
In reply to Re: How do I put all sub-directories into an array?
by kodo
in thread How do I put all sub-directories into an array?
by wylie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |