hi people can any one tell me how do i remove elements in an array which repeat more than 4 times
i tried this for single time but how do i get it for 4 times
%seen = ();
@unique = ();
for each $elem (@array)
next if $seen{$elem}++
push @unique, $elem (@array)
plzzzzzz help me in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.