...wouldn't globing be good enough for this simple job? =)
.. IAE, it is indeed too much work for this ;)sub subdirs { my $dir = shift; my @subd = (); for(<$dir/*>) { next unless -d; s".+/""; # lame 'basename' surogat :) push @subd, $_; } @subd; }
--
AltBlue.
In reply to Re: Re: Return an Array of Sub-Dir Names
by AltBlue
in thread Return an Array of Sub-Dir Names
by cynix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |