http://www.perlmonks.org?node_id=900567


in reply to Extending a hash

Consider using (untested)
$hash{a}{name} = 'bob'; $hash{a}{values}[0] = 1; $hash{b}{name} = 'mary';