mkurtis has asked for the wisdom of the Perl Monks concerning the following question:
This still allows duplicates, and also combines some of the array elements, I'm assuming from push.foreach $term(@inputs) { @result = $words{$term}; push @results, @result; } undef @numbers{@results}; my @results2 = keys %numbers; print "@results2\n";
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing duplicate elements from an array
by davido (Cardinal) on Apr 12, 2004 at 05:04 UTC | |
|
Re: Removing duplicate elements from an array
by tachyon (Chancellor) on Apr 12, 2004 at 06:48 UTC | |
|
Re: Removing duplicate elements from an array
by biosysadmin (Deacon) on Apr 12, 2004 at 13:21 UTC | |
by mkurtis (Scribe) on Apr 12, 2004 at 14:49 UTC |