From: Pit Capitain Date: 2009-02-12T07:01:25+09:00 Subject: Re: Array uniq 2009/2/11 Stuart Little : > I want something simpler than that to be honest. I just want to get rid > of all duplicate entries in the data set and leave just one of each > unique value in my array. > > Also, FYI .uniq returns all the values as they are and doesn't remove > duplicates. .uniq! gets rid of all the values and leaves me with no data > at all Can you show us the contents of the array and the result of #uniq? For example: my_array = p my_array p my_array.uniq Regards, Pit