in reply to Re^2: How to make Geo::Coder::Google run even if input location doesn't exist
in thread How to make Geo::Coder::Google run even if input location doesn't exist
Maybe $response is something else in the case of error?
I believe that eval shows the use of the $@ variable to detect whether an error happened within the block. Maybe you can use that to detect whether there was an error.
Alternatively, consider checking the value of $response - if it is not a true value, it can't be a hash reference:
... if( !$response ) { warn "Uhoh - we didn't get a response."; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to make Geo::Coder::Google run even if input location doesn't exist
by M15U (Acolyte) on Mar 01, 2013 at 08:54 UTC | |
by Corion (Patriarch) on Mar 01, 2013 at 09:04 UTC | |
by M15U (Acolyte) on Mar 01, 2013 at 09:44 UTC | |
by AnomalousMonk (Archbishop) on Mar 01, 2013 at 16:03 UTC | |
by AnomalousMonk (Archbishop) on Mar 01, 2013 at 17:14 UTC | |
by M15U (Acolyte) on Mar 04, 2013 at 17:08 UTC |