Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Sorting - lower to upper

by Joost (Canon)
on Jul 15, 2004 at 15:45 UTC ( [id://374695]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @keys = sort keys %hash; # adapt to your needs here.
    
    for (@keys) {
      print "$_ => $hash{$_}\n";
    }
    
  2. or download this
    my @keys = map { tr/a-zA-Z/A-Za-z/; $_ } sort map { tr/a-zA-Z/A-Za-z/;
    + $_ } keys %hash;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found