laziness, impatience, and hubris | |
PerlMonks |
Re: Sorting data problemby sachmet (Scribe) |
on Dec 30, 2004 at 05:25 UTC ( [id://418184]=note: print w/replies, xml ) | Need Help?? |
<=> is a numeric comparison operator. Use cmp instead, which sorts the strings alphabetically. If case is not important, use { lc($a) cmp lc($b) } for your sort.
In Section
Seekers of Perl Wisdom
|
|