but I'm getting the wrong results... Any idea why? Kind regards, Keplermy @keys = sort { $functions{$a} <=> $functions{$b} } keys(%functions) +; my @vals = @functions{@keys}; $info = "out.txt"; open(out,">$info"); print out "Key: $_ and Value: $functions{$_}\n" foreach (keys%function +s); close;
In reply to Sorting an hash array by kepler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |