Concerning "Sorting by the hash value":
It is difficult to advise you without knowing exactly what
you are trying to do, but if you are trying to print a
sorted list of values couldn't you just:
@keys = keys{%hash}; foreach $key (@keys) { $value = %hash{$key}; push(@values, $value); } sort(@values); print "@values\n";
In reply to Re: Re: Sorting by the hash value
by cybear
in thread Sorting by the hash value
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |