PDA

Click to See Complete Forum and Search --> : wheres a great place for super simple perl tutorials?


flamewavetech
Dec 6th, 2001, 12:54 PM
im gona try and learn perl. but i have no clue how to get anything to work and i have to clue how to set it up on my computer. i want to be able to test the scripts on my computer which has a apache web server running on it. but i dont know how to configure it to run.

is there a place to learn all of these things?

JoshT
Dec 6th, 2001, 01:42 PM
If you're running Windows, go to www.activestate.com and get Perl.

flamewavetech
Dec 6th, 2001, 03:00 PM
k now what do i do that i got perl?

flamewavetech
Dec 6th, 2001, 03:07 PM
when i got to a perl script it says "couldnt spawn child proccess" in the server log.

CiberTHuG
Dec 6th, 2001, 03:16 PM
I don't know if this is in any way related, but there are certain Perl functions which are not (will not be) implimented under Win32. Fork() is one of them.

Atleast it was.

In the meantime. Can you write and run a simple "Hello, World" script?

flamewavetech
Dec 6th, 2001, 03:20 PM
ye the script works fine when i run it with the command line. but when i put it in the cgi-bin of my apache server and then go to that url with IE is when i get the error.

flamewavetech
Dec 6th, 2001, 03:20 PM
im completely new to perl so for all i know it could be something u would consider to be really easy that im getting wrong.

CiberTHuG
Dec 6th, 2001, 03:43 PM
Ah, well, I've never messed with CGI. So I don't know if there is a configuration trick with your web server.

flamewavetech
Dec 6th, 2001, 03:55 PM
isnt CGI one of perls main purposes?

CiberTHuG
Dec 6th, 2001, 04:05 PM
Oh no, Perl was not written because of CGI. The two were married, but not related from birth.

You could have fun with shell scripts or Rexx if you wanted to. :)

flamewavetech
Dec 6th, 2001, 04:47 PM
so does anyone know how to get perl cgi to work on apache? i tried going to configuration file and adding a .pl handler

flamewavetech
Dec 9th, 2001, 02:51 PM
i think the problem is i cant get the first line right where u tell the comp the path to the interpreter. this is what it is right now

#!/usr/local/bin/perl

and in the apache error log it says it was unable to spawn a child proccess for it.

please help.

Wynd
Dec 9th, 2001, 09:22 PM
Did you install perl? If you did, change that line so it points to the perl.exe file (ex: "C:\Program Files\Perl\perl" or something).

flamewavetech
Dec 14th, 2001, 11:17 PM
Did you install perl? If you did, change that line so it points to the perl.exe file (ex: "C:\Program Files\Perl\perl" or something).

ye i installed perl. and the line in cgi always looks something like #!usr\local\bin\perl\ not "c:\program files\perl\perl"

da_silvy
Dec 15th, 2001, 05:45 AM
#!c:/program files/perl/bin

that should be the "shebang" line in ur cgi files i think ;)

flamewavetech
Dec 15th, 2001, 10:36 AM
nope didnt work. this is the content of the .pl file right now

#!c:/perl/bin
printf "hi";


thats the path to my perl interpreter.

heres the address to the file if my comp is on.

click here to view the .pl file (http://24.10.112.194:81/cgi-bin/html.pl)

da_silvy
Dec 15th, 2001, 11:00 AM
i don't know what the problem is :rolleyes:

flamewavetech
Dec 15th, 2001, 11:23 PM
then could u point me to a easy to use FREE web host that provides a cgi bin??

da_silvy
Dec 16th, 2001, 12:01 AM
http://thefreesite.com/Free_Web_Space/

www.hypermart.net

www.spaceports.com

www.freedomtosurf.com (closing down soon)

just search for them