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

Okay, so my structure is a bit messed up. :O
So how do I get:
$result{'home'}{'file1'} $result{'home'}{'user1'}{'file2'} $result{'home'}{'user1'}{'file3'} $result{'home'}{'user2'}{'subdir'}{'file4'} etc..