There's more than one way to do things | |
PerlMonks |
Re^2: Sort::Key::Natural sorting discrepancyby 1nickt (Canon) |
on Nov 01, 2017 at 14:01 UTC ( [id://1202526]=note: print w/replies, xml ) | Need Help?? |
Hi salva, Thanks for clarifying. Now that I know from your follow-up what the truth is, I can discern it in the docs. However, I humbly submit that the doc could be clearer. I misread the existing doc and concluded (encouraged in the wrong conclusion by the OP's code) that the string was split only on the underscores etc. (i.e.: 'boundaries' == 'underscores, etc.'). That's mostly my fault, for only seeing what I thought I was looking for, but here's a suggestion: place next to each other the descriptions of the two ways in which the string could be split, and highlight that alpha words and numbers are different, not a group:
Possibly better as:
Let me know if a patch / PR would be helpful, if you think this would be an improvement. Thanks for all you do for Perl!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|