weather script

David J Patrick davidjpatrick-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Fri Sep 17 01:48:38 UTC 2004


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.


that CAN'T be good ..
djp

--
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