On Sat, Mar 12, 2011 at 09:20:01AM +0100, mag...@trapd00r.se wrote: > On 2011-03-12 13:17, ashwin ts wrote: > > >I have an array which has few elements like '1,2,3,4,2,3,1,2,1,1,1,4,6,7' > >i need to know how many times each element has occurred in the same array. > >for example 1-5 times > > 2-3 times... > > Use a hash.
... says everyone. If the elements are actually like you say they are, don't use a hash - use an array. -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/