![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Prototype like sort()?by LanX (Cardinal) |
on Feb 01, 2018 at 17:23 UTC ( #1208261=note: print w/replies, xml ) | Need Help?? |
Others explained that not all builtins' APIs can be copied by using prototypes. But if you are willing to combine your rank with another modifier sub like by with prototype, you could form compound statements like
I find this more readable than your original approach. If acceptable, I could elaborate further on a clean implementation.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|