in reply to using hash values inside an array.
Also, be sure to remember that hash order is not guaranteed. If you need these things to be ordered based on the hash key, you'll need to use sort in conjunction with keys as in others' examples to accomplish this.foreach my $value (values %coords) { printf("%d-%d\n", $value->[0], $value->[1]); }
|
|---|