in reply to Finding Redundant values in arrays
Update: Good catch, Wog. It works as expected now. I've corrected the line from:my @test = qw(camel aplaca peguin aplaca monkey camel camel); my %temp; my @redundant = grep $temp{$_}++ == 1, @test; print "@redundant\n";
Weak rejoinder: though not the spec for this problem, it would be useful in some circumstances. ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Finding Redundant values in arrays
by wog (Curate) on Jun 08, 2001 at 00:08 UTC |