|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: weird array processing questionby Fletch (Chancellor) |
| on May 05, 2011 at 20:53 UTC ( #903240=note: print w/ replies, xml ) | Need Help?? |
|
It almost sounds like you want something like this (warning: destructive to the array since it removes items off the beginning because they've already been compared):
Update: I like toolic's approach below better as it solves the problem "does my list have more than three duplicates of any one element" without as many comparisons; original question was fuzzy so . . .
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||