blob: 927e980f463ee1d2d3bc54173c09ee6c91227f20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use strict; use warnings; use 5.014; use WebService::ForecastIo; use JSON; use Data::Printer; my $key=$ARGV[0]; my $fio = WebService::ForecastIo->new({ api_key => $key, }); my $json = $fio->request({ latitude => 51.54, longitude => -0.37, exclude => ['flags','sources'], raw => 1, }); say $json;
|