my %seen; $seen{$_}++ for values %hash; my @dups = grep { $seen{ $hash{$_} } > 1 } keys %hash; print join(',', sort @dups );
In reply to Re: Print keys corresponding to duplicate values
by tangent
in thread Print keys corresponding to duplicate values
by amar712
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |