P is for Practical | |
PerlMonks |
Re^6: Sort undefby marinersk (Priest) |
on Aug 15, 2017 at 10:48 UTC ( [id://1197412]=note: print w/replies, xml ) | Need Help?? |
Going back to my attitude when I was a C programmer: It pays to know how your compiler thinks. (Needs adjustment for application to modern use of Perl, but the sentiment is the same.) Adding/replacing these three lines into my original script above:
Yields:
A string of chr(255)bytes longer than the longest item in the original array still fails to sort to the bottom; knowing that Unicode characters are stored differently than old-fashioned ASCII strings empowers the Perl programmer to make a better choice. Thank you for the information! I'd upvote the post, but there isn't any point, as it's Anonymous Monk.
In Section
Seekers of Perl Wisdom
|
|