There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
say i had a list of friends names with their favorite number.
@array=("john1","paul21","hunter7","anja21","elmer21","tom7"); I just want to know what numbers were people's favorites and how many times each number was picked. For the above example the output should be: 1 1 times 21 3 times 7 2 times ***** In reply to sum of matching elements in an array by sickboy
|
|