@array = @{$starting_hash->{'parents'}}; # In the end I want $new_hash->{$array[0]}{$array[1]}{$array[2]} and so on . .