my %seen; for (my $i = 0; $i < @name1; $i ++) { next if $seen{$name1[$i]}++; print "$name1[$i]\t$name2[$i]\t$percent[$i]\n"; }
In reply to Re: finding the first unique element in an array
by Anonymous Monk
in thread finding the first unique element in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |