![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: Spoiled by Perl (sorting sugar)by LanX (Sage) |
on Oct 31, 2021 at 22:38 UTC ( #11138284=note: print w/replies, xml ) | Need Help?? |
thanks! :) > The dispatcher does that by finding the appropriate multi-sub that implements the actual comparison. ehm ... if I have an array with numbers and strings it will implicitly decide based on the type of $a and $b which comparison to apply? > Rakus Str class is fully Unicode aware and by default sorts characters on the numeric value of the codepoint. I'm not sure if that's sufficient to handle different standards. E.g. the telephone book in Germany has another sorting than the dictionaries.
Cheers Rolf
updateclearer rewording
In Section
Meditations
|
|