in reply to Re^4: directory tree to hash of arrays
in thread directory tree to hash of arrays
That's a little inconsistent. Your outer dir is a hashref while your inner dir is an arrayref. Furthermore in some places (directories) you use the name as a key and in other places (files) as a value.
I agree with kcott - it's always better to plan your data structure in detail first before considering the minutiae of how to construct it.
|
|---|