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.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In reply to Re: One Hash Instead of Two
by davorg
in thread One Hash Instead of Two
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |