Baratski has asked for the wisdom of the Perl Monks concerning the following question:
@allnames = grep(!$saw{$_}++, @names);
Is there a way to accomplish this feat?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove equal but different duplicates from array
by ysth (Canon) on Jul 23, 2004 at 19:49 UTC | |
|
Re: Remove equal but different duplicates from array
by Eimi Metamorphoumai (Deacon) on Jul 23, 2004 at 19:49 UTC | |
by Limbic~Region (Chancellor) on Jul 23, 2004 at 19:53 UTC | |
by Baratski (Acolyte) on Jul 24, 2004 at 09:46 UTC |