foreach my $key ( sort { $self->{_counts}{$a} <=> $self->{_counts}{$b} } keys %{ $self->{_counts} } ) { printf "key %s: value %s\n", $key, $self->{_counts}{$key}; }
In reply to Re: Hash value sorting
by daxim
in thread Hash value sorting
by iHutch105
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |