Todd Benson
11/5/2008 2:02:00 PM
On Wed, Nov 5, 2008 at 7:35 AM, Stuart Clarke
<stuart.clarke1986@gmail.com> wrote:
> I have an array full of strings which represent a date ID. The array
> contains indivduals strings like the following:
>
> TueAug052008
>
> I want to iterate through this array (@eventbydate[]) and check each of
> the values of the array. I then want a statement which says if any of
> the date ID's in the array occurs more than 5 times print out some data.
>
> Pseudo code
>
> if dataID occurs more than 5times
> print results
> end
>
> I hope this makes sense.
>
> I would appreciate any help
>
> Regards
[1, 1, 2, 3, 4].count(1)
Todd