my %reverse; while (my ($key, $value) = each %hash) { push @{$reverse{$value}}, $key; } while (my ($key, $value) = each %reverse) { next unless @$value > 1; local $" = "' and '"; print "English strings '@$value' have the same translation ('$key' +)\n"; }
In reply to Re: Find duplicate values in hash
by JavaFan
in thread Find duplicate values in hash
by moff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |