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

$result{'home'}[0] $result{'home'}{'user1'}[0]
That's never gonna work. $result{'home'} cannot be both a hashref and an arrayref.