in reply to How do I get directory structure into a hash?

The solution by aristotle works good. The only problem i am facing is there the hash is something like this.. $VAR1 = { '' => { 'home' => { Why am i getting an empty key? I don't know how to access the hash now? Can anyone help me with this?

Originally posted as a Categorized Answer.

  • Comment on Re: How do I get directory structure into a hash?