in reply to Re: Return an Array of Sub-Dir Names
in thread Return an Array of Sub-Dir Names
...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.
|
|---|