$games{person) = "11::Game name::Game date"; I have it setup like that. How can I print the records in order from highest to lowest (first split before :: in the value) and have everything else from that particular heash entry kept together? Ie. I want to print out all scores like:
foreach (sort keys %games) { my ($count, $game, $date) = split(/::/, $games{$_}); print "<td>$_</td> <td>SPLIT BY NUMBER HERE</td>..."; }
Thank you, wise monks.
In reply to Sorting on a split hash value by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |