or in one single sentence:my @keys_by_key = sort { $a <=> $b } keys %hash; my @values_by_key = @hash{@keys_by_key};
my @values_by_key = @hash{sort { $a <=> $b } keys %hash};
In reply to Re: Sort: By keys, values, and their returning values.
by salva
in thread Sort: By keys, values, and their returning values.
by larsss31
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |