in reply to Count of element in array - Help
Looking at the dismaying initialization of the @arr array in the OP, I think it might be helpful to provide a link to the Perl Data Structures Cookbook (perldsc), even if it's a bit late.
Give a man a fish: <%-{-{-{-<
|
|---|