Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by halley (Prior)
on May 11, 2003 at 12:07 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-19 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found