my @sorted = sort { length($a) <=> length($b) or $a cmp $b } keys %count;
In reply to Re: Sort hash by key length and alphabetically
by salva
in thread Sort hash by key length and alphabetically
by perlcat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |