in reply to Hash value sorting
foreach my $key ( sort { $self->{_counts}{$a} <=> $self->{_counts}{$b} } keys %{ $self->{_counts} } ) { printf "key %s: value %s\n", $key, $self->{_counts}{$key}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash value sorting
by iHutch105 (Initiate) on Aug 14, 2012 at 12:26 UTC | |
by greengaroo (Hermit) on Aug 14, 2012 at 12:57 UTC | |
by daxim (Curate) on Aug 14, 2012 at 13:34 UTC | |
by daxim (Curate) on Aug 14, 2012 at 13:44 UTC | |
by iHutch105 (Initiate) on Aug 14, 2012 at 15:41 UTC | |
|
Re^2: Hash value sorting
by iHutch105 (Initiate) on Aug 14, 2012 at 12:16 UTC |