in reply to I'm confused... using Geo::Weather
and it ran fine. 80 degrees. If you leave out the first line altogether, it will probably try to run it with /bin/sh, which gives odd errors when it sees Perl...#!/usr/bin/perl -w use strict; use Geo::Weather; my $weather = new Geo::Weather; my $current = $weather->get_weather('19067'); print "The current temperature is $current->{temp} degrees\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: I'm confused... using Geo::Weather
by Sabacthani (Novice) on Jun 25, 2001 at 23:15 UTC | |
by BigJoe (Curate) on Jun 26, 2001 at 00:06 UTC | |
by Aighearach (Initiate) on Jun 26, 2001 at 00:36 UTC | |
by damian1301 (Curate) on Jun 26, 2001 at 00:43 UTC |