Hi,

Thank you all for the support.It helped me a lot.i tried working with arrays
as well as with hash.Both the approaches works fine in the case of a small
array with few elements.
When i tried the same for a large array , i started getting "out of memory"
error.
Any suggestions would be of great help.

Thanks again,

Regards
Ashwin Thayyullathil Surendran



---------- Forwarded message ----------
From: ashwin ts <ashwint...@gmail.com>
Date: Sat, Mar 12, 2011 at 1:17 PM
Subject: help with array elements
To: beginners@perl.org


Hi,

I am a newbie to perl.
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...
could some one throw some light on how i can do this.
thanks in advance..

Regards
Ashwin Thayyullathil Surendran

Reply via email to