Perl Monk, Perl Meditation | |
PerlMonks |
Re: Obtaining number of counts per each name in hashby jeffa (Bishop) |
on Jul 07, 2015 at 19:20 UTC ( [id://1133597]=note: print w/replies, xml ) | Need Help?? |
You want to increment the value of the key as each occurrence is found: And then later:
You could trim up your code a bit as well:
jeffa L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom
|
|