Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: help sorting hash of hashes by value

by johngg (Canon)
on Apr 08, 2022 at 15:40 UTC ( [id://11142839]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    printf qq{foo: %s, ba: %s, value: %s\n},
       split( m{\0}, $_ ), $flatter{ $_ }
       for @sortedKeys;
    
  2. or download this
    foo: foo3, ba: baz, value: 0.0001939
    foo: foo3, ba: bar, value: 9.966003977e-06
    ...
    foo: foo2, ba: bar, value: -4.0183e-05
    foo: foo1, ba: baz, value: -0.000398154
    foo: foo1, ba: bar, value: -0.12697
    
  3. or download this
    use strict;
    use warnings;
    ...
            keys %{ $hoh_test{ $k1 } };
       }
       keys %hoh_test;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found