![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^2: Prototype like sort()?by haukex (Bishop) |
on Feb 01, 2018 at 14:38 UTC ( #1208252=note: print w/replies, xml ) | Need Help?? |
I'm a bit late to the party, I just wanted to point out that it's not impossible to have one sub do it all, just ugly (and with the limitation that in the third form, the first thing in the list can't be a coderef):
On the other hand, I like your solution of rank @list vs. rankby {...} @list!
In Section
Seekers of Perl Wisdom
|
|