weather script

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri Sep 17 02:24:50 UTC 2004


On Thu, Sep 16, 2004 at 09:48:38PM -0400, 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:
> /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.3
> /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.2
> /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl .) at
> /home/djp/bin/weather.pl line 2.
> BEGIN failed--compilation aborted at /home/djp/bin/weather.pl line 2.

You do need to install the Weather::Underground CPAN module.

Either your distribution can provide you one, or you can install it with
the cpan command I believe.

www.cpan.org

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list