|
-
Dec 6th, 2001, 01:54 PM
#1
Thread Starter
Fanatic Member
wheres a great place for super simple perl tutorials?
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?
FlameWave Technologies - internet tools
-
Dec 6th, 2001, 02:42 PM
#2
Black Cat
If you're running Windows, go to www.activestate.com and get Perl.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Dec 6th, 2001, 04:00 PM
#3
Thread Starter
Fanatic Member
k now what do i do that i got perl?
FlameWave Technologies - internet tools
-
Dec 6th, 2001, 04:07 PM
#4
Thread Starter
Fanatic Member
when i got to a perl script it says "couldnt spawn child proccess" in the server log.
FlameWave Technologies - internet tools
-
Dec 6th, 2001, 04:16 PM
#5
Frenzied Member
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?
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 6th, 2001, 04:20 PM
#6
Thread Starter
Fanatic Member
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.
FlameWave Technologies - internet tools
-
Dec 6th, 2001, 04:20 PM
#7
Thread Starter
Fanatic Member
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.
FlameWave Technologies - internet tools
-
Dec 6th, 2001, 04:43 PM
#8
Frenzied Member
Ah, well, I've never messed with CGI. So I don't know if there is a configuration trick with your web server.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 6th, 2001, 04:55 PM
#9
Thread Starter
Fanatic Member
isnt CGI one of perls main purposes?
FlameWave Technologies - internet tools
-
Dec 6th, 2001, 05:05 PM
#10
Frenzied Member
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.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 6th, 2001, 05:47 PM
#11
Thread Starter
Fanatic Member
so does anyone know how to get perl cgi to work on apache? i tried going to configuration file and adding a .pl handler
FlameWave Technologies - internet tools
-
Dec 9th, 2001, 03:51 PM
#12
Thread Starter
Fanatic Member
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.
FlameWave Technologies - internet tools
-
Dec 9th, 2001, 10:22 PM
#13
Fanatic Member
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).
Alcohol & calculus don't mix.
Never drink & derive.
-
Dec 15th, 2001, 12:17 AM
#14
Thread Starter
Fanatic Member
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"
FlameWave Technologies - internet tools
-
Dec 15th, 2001, 06:45 AM
#15
Conquistador
#!c:/program files/perl/bin
that should be the "shebang" line in ur cgi files i think
-
Dec 15th, 2001, 11:36 AM
#16
Thread Starter
Fanatic Member
nope didnt work. this is the content of the .pl file right now
VB Code:
#!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
FlameWave Technologies - internet tools
-
Dec 15th, 2001, 12:00 PM
#17
Conquistador
i don't know what the problem is
-
Dec 16th, 2001, 12:23 AM
#18
Thread Starter
Fanatic Member
then could u point me to a easy to use FREE web host that provides a cgi bin??
FlameWave Technologies - internet tools
-
Dec 16th, 2001, 01:01 AM
#19
Conquistador
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|