my $hashref = $hash{'one'}; $hashref->{'key1'} = 'value1'; $hashref->{'key2'} = 'value2'; print $_,"=",$hashref->{$_},"\n" foreach keys %$hashref;