foo sub1 sub2 sub21 sub22 bar camel #### my $hash_tree = { foo => { sub1 => '', sub2 => { sub21 => '', sub22 => '' } }, bar => { camel => '' } }