Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: alphabetize a hash ignoring upper/lower cases

by bigj (Monk)
on May 12, 2003 at 10:27 UTC ( [id://257380]=note: print w/replies, xml ) Need Help??


in reply to alphabetize a hash ignoring upper/lower cases

If speed doesn't play that important role, but readability does, I would prefer to use a module:
use Sort::Naturally; # from CPAN foreach $orf (nsort keys %mips) { push @mips, $mips{$orf}; }
or perhaps also written as
my @mips = @mips{nsort keys %mips};

Greetings,
Janek

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found