... my %name_count; for my $name (values %names){ $name_count{$name}++; } for my $name (sort {$name_count{$a}<=>$name_count{$b}} keys %name_coun +t){ print "$name occurs $name_count{$name} times in the \%names hash\n"; }
In reply to Re: How to find the repeated text in hash
by Utilitarian
in thread How to find the repeated text in hash
by codewalker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |