in reply to Frontier::Client mystery result string hash
That doesn't look quite right. First off, are you doing:
orprint Dumper($result)
? If you're doing the former, that means $result is an array ref. The array so ref'd has one entry in it: a hash ref. That hash has a bunch of keys, including state, suffix, lat, and city. That is option #1. If you're doing the latter, then $result is a hash ref. This is option #2.print Dumper([$result])
In option #1, you would find the city via: $result->[0]->{'city'} or, my preference, $result->[0]{'city'} (the quotes are optional in both cases).
In option #2, you would find the city as you attempted.
Either way, I'm not sure that your error is coming from the print statement. Can you come up with a minimal working script that shows your problem? You can skip Frontier::Client, if the problem isn't there, by setting up $result in your minimal script.
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Frontier::Client mystery result string hash
by brycen (Monk) on Feb 16, 2005 at 05:28 UTC |
In Section
Seekers of Perl Wisdom