Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Sorting a Hash of Hashes

by HuckinFappy (Pilgrim)
on Jul 09, 2006 at 03:01 UTC ( [id://559975]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %foo = (
      11 =>{ 4 => 'Four' },  
    ...
                   keys %$ref_HoH ) {
    ...
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    for my $k ( sort { $a <=> $b } keys %$ref_HoH ) {
       print "$k\n";
    }
    
  3. or download this
    hf@flux[30] perl /tmp/testit
    2
    11
    33
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found