el-moe has asked for the wisdom of the Perl Monks concerning the following question:
my %hash = ( TYPE => ["hole", "hole", "chain", "slot"], SIZE => [126, 93, 96, 130], STEP => ["pcb", "pcb", "array", "panel"], COMP => ["none", "none", "right", "left"], );
I need to sort the $hash{SIZE} array and have all the other arrays sort along with it.
I looked at a lot of documentation and found sorts of many types but none match my problem. I was thinking the Schwartzian Transform might work but I'm not sure how to get from the example to a working ST I can use...
Thanks in advance for all your help!!
Prost,
Moe
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: How do you sort a hash of array refs?
by tilly (Archbishop) on Nov 16, 2000 at 05:09 UTC | |
|
Re: How do you sort a hash of array refs?
by runrig (Abbot) on Nov 16, 2000 at 04:33 UTC | |
by Dominus (Parson) on Nov 16, 2000 at 05:22 UTC | |
by el-moe (Scribe) on Nov 16, 2000 at 05:32 UTC |