gueriniere has asked for the wisdom of the Perl Monks concerning the following question:
(This is only a small part of the code) My problem is how to decide what element the hash is sorted on?for (sort { $shipto{$a}{i} <=> $shipto{$b}{i} } keys %shipto) { print qq| <tr> <td></td> <th align=right nowrap>$shipto{$_}{label}</th> <td>$ref->{"shipto$_"}</td> </tr> |; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sort in multilevel hash
by Anonymous Monk on Jan 08, 2012 at 22:17 UTC | |
by gueriniere (Initiate) on Jan 09, 2012 at 07:47 UTC | |
by Anonymous Monk on Jan 09, 2012 at 09:46 UTC | |
by Anonymous Monk on Jan 09, 2012 at 08:58 UTC | |
by gueriniere (Initiate) on Jan 09, 2012 at 09:34 UTC | |
by roboticus (Chancellor) on Jan 09, 2012 at 11:00 UTC | |
by Anonymous Monk on Jan 09, 2012 at 09:51 UTC | |
by Anonymous Monk on Jan 09, 2012 at 09:55 UTC | |
by TJPride (Pilgrim) on Jan 09, 2012 at 23:30 UTC | |
|
Re: Sort in multilevel hash
by TJPride (Pilgrim) on Jan 09, 2012 at 00:20 UTC | |
by gueriniere (Initiate) on Jan 09, 2012 at 08:31 UTC | |
by TJPride (Pilgrim) on Jan 09, 2012 at 09:30 UTC | |
by gueriniere (Initiate) on Jan 09, 2012 at 21:04 UTC | |
|
Re: Sort in multilevel hash
by tobyink (Canon) on Jan 08, 2012 at 22:14 UTC |