in reply to Google decoder
The following should do it:
my $lat = $location->{'geometry'}->{'location'}->{'lat'};
UPDATE: I hit the same error as you. The follwoing should make it clear after reformatting:
'geometry' => { 'viewport' => { 'southwest' => { 'lat' => '47.0860081197085', 'lng' => '8.2563233197085' }, 'northeast' => { 'lat' => '47.0887060802915', 'lng' => '8.2590212802915' } }, 'location' => { 'lat' => '47.0873571', 'lng' => '8.2576723' }, 'location_type' => 'ROOFTOP' }
McA
|
---|
In Section
Seekers of Perl Wisdom