Re: [MacPerl-WebCGI] need help with My first perl program

[email protected] (liming zhao) Thu, 29 Aug 2002 15:05:10 -0700 (PDT)
Newsgroups perl.macperl.webcgi
Message-ID <[email protected]>
Hey Bill 

Thanks a lot for your help.

I want to make the following perl codes we discussed
before running on web.

my Max OS X has been installed with apache2.0.

I tried to find where is the web folder. on Mac
Window desktop ,I found \untitled\library\WebServer
and under this folder ,there are CGI-Excutalbes and
Documents- two folders. Under CGI-Excutalbes, there
is a perl file named test-cgi, 


and in unix command line ,under /usr/local/apache2/
cgi-bin/
there are test-cgi too. so I guess they are the same?


but when I was trying 127.0.0.1/cgi-bin/test-cgi,
it is said no "test-cgi"found .error.


I also tried to change the attribute of files and
the usr/local/apache2, but no permission.

Would you please give me some guidance about my
question/

Thanks.

regards.
Liming




--- Bill Becker <[email protected]> wrote:
> Type this:
> 
> . test.pl
> 
> (that's dot-space-test.pl)
> 
> Or append your current directory onto the $PATH
> environment variable.
> 
> 
> At 11:40 -0700 08/23/2002, liming zhao wrote:
> >Hey,
> >  my current work directory is /opt/
> >  I can run command line> perl -e 'print "hello, I
> love
> >perl"'
> >  But when I edit a file test.pl with the following
> >  content:
> >
> >  #!/usr/bin/perl
> >  print "hello, I love perl";
> >
> >  and execute command
> >  chmod +x test.pl
> >  but when
> >  I type
> >  test.pl and enter key
> >
> >  it is said "no command found!"
> >
> >  will you tell you what is the problem?
> >
> >  thanks in advance.
> >


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com