weather script
Andy Jack
f.e.jack-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Fri Sep 17 00:07:24 UTC 2004
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
so when the script executes "/usr/bin/perl" is the interpreter, not the
shell (substitute your actual perl location, e.g. the output of 'which
perl' for your machine).
Andy
--
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