Do you mean this:
$locations{$_}++ for @locations;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Adding values from an array to a hash
by davorg
in thread Adding values from an array to a hash
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |