in reply to Eliminate duplicate and original values
foreach (@array) { $hash{$_}++; } foreach (keys %hash) { delete $hash{$_} if ($hash{$_} > 1); } @array2 = keys %hash;
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Eliminate duplicate and original values
by data64 (Chaplain) on Nov 25, 2001 at 23:56 UTC | |
by jryan (Vicar) on Nov 26, 2001 at 00:38 UTC | |
by DrManhattan (Chaplain) on Nov 26, 2001 at 04:02 UTC | |
by jlongino (Parson) on Nov 26, 2001 at 00:16 UTC | |
by data64 (Chaplain) on Nov 26, 2001 at 00:24 UTC |