in reply to Re^2: Urgent Help: Array of Hashes
in thread Urgent Help: Array of Hashes

You can conveniently store the counts of particular "words" using a hash:
#!/usr/bin/env perl use strict; use warnings; my %freqs = (); # .... # for each match of $word $freqs{$word}++; # ... # the list the counts: foreach my $word (keys(%freqs)) { print "$word: $freqs{$word}\n"; } 1;