#!/usr/bin/perl use Geo::Weather; my $weather = new Geo::Weather; $weather->get_weather('Philadelphia','PA'); print $weather->report(); #### Philadelphia, Pennsylvania
Mostly Cloudy
Temp37° F
WindFrom the West at 15 mph
Dew Point18° F
Rel. Humidity39%
Visibilityunlimited
Barometer30.25 inches
Sunrise7:14 am
Sunset5:16 pm
##
## use Geo::Weather; my $weather = new Geo::Weather; my $current = $weather->get_weather('19067'); print "The current temperature is $current->{temp} degrees\n"; #### The current temperature is 35 degrees