note
ikegami
<p>Notice the square brackets around the curly ones. You have a reference to an array, not a reference to hash. The first (and only) element of the array is a reference to a hash, so:</p>
<code>
print($result->[0]{'city'}, "\n");
</code>
<p>or</p>
<code>
foreach $record (@$result) {
foreach $field (keys %$record) {
printf("%s: %s\n",
$field,
$record->{$field},
);
}
print("\n");
}
</code>
431432
431432