in reply to Confused about complex data structures.
To see what your data structure looks like, you can use Data::Dumper to inspect the structure after you've built it:
or use the perl debugger (which I can't help you with, being of the printf() school of debugging, myself). :)use Data::Dumper; print Dumper(\%city_data);
As for printing everything in one of your arrays, you've already got this licked: print @{ $city_data{$city}{$id} } will output the content of the file "${city}_${id}".
|
|---|