> say for sort_hash(\&numerically, %hash);
well you don't need the braces
say for sort_hash \&numerically, %hash ;
and this works too
say for sort_hash {numerically} %hash ;
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^4: Custom, Reusable Sort Subroutine for Hashes?
by LanX
in thread Custom, Reusable Sort Subroutine for Hashes?
by QM
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |