Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
more useful options
 
PerlMonks  

Re: How to sort in this upper / lower case?

by Aristotle (Chancellor)
on Dec 26, 2005 at 07:49 UTC ( [id://519132]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to How to sort in this upper / lower case?

Or, as an auxiliary answer for completeness’ sake that you should probably ignore: if the array is very large and the strings are long,

@array = @array[ do { my @lc = map lc, @array; sort { $lc[ $a ] cmp $lc[ $b ] } 0 .. $#array; } ];

Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://519132]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.