>> p @_ 43.61-116.20 >> p $debug 0 #### my $return = get_elevation_from_coordinates( $event->{location}->{lat}, $event->{location}->{lon}, $debug ); #### ./6.mp.pl : latitude=-15.6325&longitude=-141&application_max_assets_mtime=1559625591 ./6.mp.pl : sending above payload, of 72 bytes... INFO: return from the google is 0 meters #### # Note that JSON version 2.0 and above will automatically use # JSON::XS or JSON::PP, so you should be able to just: use JSON; #### 'JSON.pm' => '4.03 from /usr/local/share/perl/5.30.0/JSON.pm' 'JSON/XS.pm' => '4.03 from /usr/local/lib/x86_64-linux-gnu/perl/5.30.0/JSON/XS.pm'