This sounds a lot like homework to me. But there is one rule of thumb in Perl - whenever you think of "unique", think "hash". Using a hash, with the array elements as keys and the count as values will give you an easy solution to your problem. Now all you have to do is write the code.
In reply to Re: How to find number of unique elemenst in array
by Corion
in thread How to find number of unique elemenst in array
by gasho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |