for my $nombre (sort { $a cmp $b or $planets{$a} <=> $planets{$b} } keys %cuantas_veces_sale)
Though you haven't been clear what %planet holds.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: Sort hash keys
by LanX
in thread Sort hash keys
by cristianro87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |