my %h; # New site $h{'siteA'} = {'09-10-2011' => 1}; # Second instance of site and date found, increment. $a{'siteA'}->{'09-10-2011'}++; # Another date found for siteA, '10-10-2011' ...