in reply to Problem with Hash when Using Strict

The problem is that you keep assigning to $hash{site}, so when you look at the keys for %hash, one of them is "site". As far as I can tell, there's no reason for the assignment to $hash{site} in the first place.