No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Your data description appears to be wrong. I count 2 'b's, not 1 or 3. I count 3 'a's, not 2. I count 2 'c's, not 3. I certainly don't count 4 'f's. As for solving the problem, to work with parallel arrays, you'll need to use a loop to walk over all of them. For example:
In the body of the loop you'll need to populate that hash. Think about what should be your key and what should be your value. Good luck! jarich In reply to Re: confused with summing certain elements from an array
by jarich
|
|