Do you mean:
-my @sorted = { $tmp{$a} <=> $tmp{$b} or $a cmp $b } keys %tmp; +my @sorted = sort { $tmp{$a} <=> $tmp{$b} or $a cmp $b } keys %tmp;
After Compline,
Zaxo
In reply to Re: RE: thoughts on learning perl basics
by Zaxo
in thread thoughts on learning perl basics
by 2501
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |