Skip to content

Instantly share code, notes, and snippets.

@AwwCookies
AwwCookies / openweather.pl
Created August 4, 2013 13:42
"Soon" to be perl module for the openweather API
#!/usr/bin/perl -w
use strict;
use 5.018;
use LWP::Simple;
use JSON::PP;
my $api_url = 'http://api.openweathermap.org/data/2.5/weather?q=';
my $qurey = 'San Diego, CA';
my $json = JSON::PP->new();