in reply to
references changing a hash value
$ranimals is a reference to %animals, so they both point at the same thing. So, when you change $$ranimals{'duck'}, you're also changing $animals{'duck'}.
Comment on
Re: references changing a hash value
In Section
Seekers of Perl Wisdom