jgn has asked for the wisdom of the Perl Monks concerning the following question:
This all works fine. Each machine that meets this criteria is tacked onto the hash. However I am at a complete loss for how to sort by the value of one of these keys when I generate my report. I have tinkered with the various sort methods I have found in my google search and no joy.if (( $pctused ) > 97 ) { $srvlist{ $srvname } = { pctused => "$pctused", volname => "$volname", volfree => "$volfree" }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sort Hash of Hashes by key value
by TomDLux (Vicar) on Mar 14, 2011 at 20:01 UTC | |
|
Re: Sort Hash of Hashes by key value
by philipbailey (Curate) on Mar 14, 2011 at 19:24 UTC | |
|
Re: Sort Hash of Hashes by key value
by chrestomanci (Priest) on Mar 14, 2011 at 19:24 UTC | |
by johngg (Canon) on Mar 14, 2011 at 19:39 UTC | |
by chrestomanci (Priest) on Mar 14, 2011 at 19:55 UTC |