Results 1 to 19 of 19

Thread: wheres a great place for super simple perl tutorials?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746

    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

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    k now what do i do that i got perl?
    FlameWave Technologies - internet tools

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    when i got to a perl script it says "couldnt spawn child proccess" in the server log.
    FlameWave Technologies - internet tools

  5. #5
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    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

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    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

  8. #8
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    isnt CGI one of perls main purposes?
    FlameWave Technologies - internet tools

  10. #10
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    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

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    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

  13. #13
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    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.

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    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

  15. #15
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    #!c:/program files/perl/bin

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

  16. #16

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    nope didnt work. this is the content of the .pl file right now
    VB Code:
    1. #!c:/perl/bin
    2. 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

  17. #17
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    i don't know what the problem is

  18. #18

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    then could u point me to a easy to use FREE web host that provides a cgi bin??
    FlameWave Technologies - internet tools

  19. #19
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width