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: <%-{-{-{-<
In reply to Re: Count of element in array - Help
by AnomalousMonk
in thread Count of element in array - Help
by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |