in reply to Re: Trapping errors
in thread Trapping errors

Ah, thank you for all that. I went through the usual error variables and ultimately found that the API call was not returning an error per se - but in the internal 'status' field it says, "ZERO RESULTS". So I need to read the status field from the returned hash and control the program flow from there. Problem is, I am not certain how to read the hash. I didn't call for one so what do I read? Any thoughts? Thanks!

Replies are listed 'Best First'.
Re^3: Trapping errors
by Laurent_R (Canon) on Jul 24, 2014 at 06:37 UTC
    Your $geocoder variable is probably a reference to an object that most probably has accessors within its methods. Use them. If worse comes to worse, you could probably use the Data::Dumper to figure out the underlying data structure, this might help you understanding what is going on, but you should most probably not rely on that for your real program, but use the methods provided by the interface.