This doesnt not print by the has value, and I have no clue why????print "<select name=\"m_v\">"; %list = whats(); sub hashValueAscendingNum { $list{$a} <=> $list{$b}; } foreach $key (sort hashValueAscendingNum (keys(%list))) { print "<option value=\"$key\">$list{$key}</option>"; } print "</select>";
In reply to Sorting by the hash value by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |