in reply to Count not working
foreach (@COMPANIES) { $sum{$_->{comp}}++; }
Note that since Perl automatically stringifies alphanumeric hash keys, you don't need to include quotes in this context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Count not working
by molson (Acolyte) on Jul 14, 2010 at 18:46 UTC |