Maybe you shouldn't try to get longitude and latitude when you already know that you didn't get a valid response?
I recommend the following structure:
if ($@){ print "Couldn't get location\n"; } else { ... retrieve and print longitude, latitude }
In reply to Re^5: How to make Geo::Coder::Google run even if input location doesn't exist
by Corion
in thread How to make Geo::Coder::Google run even if input location doesn't exist
by M15U
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |