Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: alphabetize a hash ignoring upper/lower cases

by halley (Prior)
on May 11, 2003 at 12:07 UTC ( #257223=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @ordered =
       map { $_->[0] }
       sort { $a->[1] cmp $b->[1] }
       map { [ $_, expensive_function($_) ] }  # such as lc()
       @unordered;                             # such as keys %hash
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://257223]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2022-12-03 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?