in reply to Using a hash key value as the key in another hash.

Of course, by the time you get to stuff like this:

$self->{base}->{$self->{elements}->{$element}->{type}}

It just gets plain hard to read. Other than that, theres nothing wrong with accessing a hash with a key from another at all.