foreach (@COMPANIES) { $sum{$_->{comp}}++; }
Note that since Perl automatically stringifies alphanumeric hash keys, you don't need to include quotes in this context.
In reply to Re: Count not working
by kennethk
in thread Count not working
by molson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |