in reply to extracting redundant and unique items
my @array = ('11','54','23','78','54','54','78'); print join ', ', grep ++$seen{$_} == 1, @array; __output__ 11, 54, 23, 78
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: extracting redundant and unique items
by chip (Curate) on May 14, 2003 at 16:28 UTC | |
by broquaint (Abbot) on May 14, 2003 at 16:48 UTC |