weather script

Scott Elcomb Scott.Elcomb-iRg7kjdsKiH3fQ9qLvQP4Q at public.gmane.org
Fri Sep 17 01:59:26 UTC 2004


On Thu, 2004-09-16 at 21:48, David J Patrick wrote:
> On Thu, 2004-09-16 at 20:07, Andy Jack wrote:
> > On Thu, Sep 16, 2004 at 07:05:26PM -0400, David J Patrick wrote:
> > > but now it says;
> > > [djp at sympatico djp]$ ~/bin/weather.pl
> > > /home/djp/bin/weather.pl: line 1: use: command not found
> > > /home/djp/bin/weather.pl: line 2: syntax error near unexpected token `('
> > > /home/djp/bin/weather.pl: line 2: `$weather =
> > 
> > You realize this is a perl script right?  Looks like you're trying to
> > run a perl script as a shell script.  The very first line should be
> 
> > #!/usr/bin/perl
> 
> after adding that to the head;
> 
> [djp at sympatico djp]$ ~/bin/weather.pl
> Can't locate Weather/Underground.pm in @INC (@INC contains:
[ ... ]

As root, run perl -MCPAN -e shell

When you get the CPAN> prompt, enter
  install Weather::Underground
and you should be good.

Incidentally, I love this thread. I started a simple application based
on it here: http://psema4.gotdns.com/weather.cgi

-- 
https://sourceforge.net/projects/avalonweb/

PGP Public Key:
1024D/98125E76 2004-03-21 Scott Elcomb (dL33T) <Scott.Elcomb-iRg7kjdsKiH3fQ9qLvQP4Q at public.gmane.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gtalug.org/pipermail/legacy/attachments/20040916/e9c5ce68/attachment.sig>


More information about the Legacy mailing list