Given that your directory structure is only 2 levels deep, there is no need for recursion. You can build your Hash of Arrays in one line.
my %dirs = map{ $_ => [ map{ m[.*/(.*?)$] } glob "$_/*" ] } grep{ -d } glob "/basedir/*";
The main advantage is that you build the datastructure you want directly, but I'm also not much of a fan of the Find::File* stuff.
In reply to Re: Directory Recursion Disorder
by BrowserUk
in thread Directory Recursion Disorder
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |