in reply to One Hash Instead of Two

Looks like you can just store the count in the same hash.

if ($hash{$3}{src}){ $hash{$3}{count}++; }

Update: McDarren raises a good point. You should probably take a good look at the data structure you create. That's simple enough with Data::Dumper.