my %counts; ++$counts{$_} for @array; print("There are $counts{$_} element(s) of $_\n") for sort keys %counts;
In reply to Re: How to find number of unique elemenst in array
by ikegami
in thread How to find number of unique elemenst in array
by gasho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |