in reply to using hash values inside an array.
As a short example of how to loop over a hash of lists, here is a crude way to print out your data structure:
for my $key (keys %coords) { print "$key =>\n"; for my $x_coord (@{$coords{$key}}) { print " $x_coord\n"; } }
|
|---|