in reply to Re: Adding to a hash reference
in thread Adding to a hash reference

That replaces what was in $h{'siteA'} to start with. It doesn't add a new entry to the hash reference.

The first answer looks good to me.