Re: unique elements in array

2002-02-26 Thread Jeff 'japhy' Pinyan
On Feb 26, Simon K. Chan said: >The solution to my question is probably dead easy, but the bioperl >module I'm working on right now has sucked up all by brain juice! ;-) > >Let's say I have this array: > >@food = qw(milk ham eggs bread eggs milk); > >How can I write a script that sticks all UNIQU

unique elements in array

2002-02-26 Thread Simon K. Chan
Hi All, The solution to my question is probably dead easy, but the bioperl module I'm working on right now has sucked up all by brain juice! ;-) Let's say I have this array: @food = qw(milk ham eggs bread eggs milk); How can I write a script that sticks all UNIQUE elements (occurs only once)