in reply to Return an Array of Sub-Dir Names
use File::Find; sub get_sub_dirs { my @return; find sub { push @return, $File::Find::name if -d; }, @_; @return; }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Return an Array of Sub-Dir Names
by AltBlue (Chaplain) on Sep 26, 2001 at 00:46 UTC |