Now the %frequency hash holds each word (but only once!) and $frequency{$some_word} is the number of times $some_word appeared in @list.for my $word (@list) { $frequency{$word}++; }
In reply to Re: Count and List Items in a List
by japhy
in thread Count and List Items in a List
by Tech77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |