in reply to Frontier::Client mystery result string hash
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:
print($result->[0]{'city'}, "\n");
or
foreach $record (@$result) { foreach $field (keys %$record) { printf("%s: %s\n", $field, $record->{$field}, ); } print("\n"); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Frontier::Client mystery result string hash
by brycen (Monk) on Feb 16, 2005 at 05:25 UTC | |
by jbrugger (Parson) on Feb 16, 2005 at 05:44 UTC | |
by ikegami (Patriarch) on Feb 16, 2005 at 06:46 UTC | |
by brycen (Monk) on Feb 16, 2005 at 19:50 UTC | |
by ikegami (Patriarch) on Feb 17, 2005 at 15:40 UTC | |
by dragonchild (Archbishop) on Feb 16, 2005 at 13:22 UTC |
In Section
Seekers of Perl Wisdom