(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> |; }
In reply to Sort in multilevel hash by gueriniere
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |