Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello. I am really new to perl and cgi. Can you tell me if i need to install mod_perl in order to make perl work for my cgi. any help is greatly appreciated. thanks Adam

Replies are listed 'Best First'.
Re: Setting Up Perl for CGI use
by premchai21 (Curate) on Aug 16, 2001 at 22:38 UTC

    Simply put, no. mod_perl is for running Perl code directly inside Apache. It is different. Just make sure you use CGI for CGIs, as well as strict and -w/warnings always. If you want to learn Perl, you can look at Book Reviews for some good books on the topic.

    I'm sure someone else can explain this better than I can...

Re: Setting Up Perl for CGI use
by Agermain (Scribe) on Aug 16, 2001 at 22:51 UTC
    No, you don't need mod_perl to install perl. Mod_perl is like putting a turbocharger on your engine: not necessary, but it makes your code run a lot faster if you know how to use it. You just need to install perl and make sure that you tell the webserver software (MS IIS, Apache, iPlanet, Netscape Enterprise Server, whatever) how to run your perl scripts. If you're running on a Windows NT or 2000 server, ActivePerl's install program will take care of all this tedious work for you.

    andre germain
    "Wherever you go, there you are."

Re: Setting Up Perl for CGI use
by Anonymous Monk on Aug 16, 2001 at 23:06 UTC
    Thank you for all your help.

    I am glad that a friend of mine pointed me here. Lots of good info.

    Adam
Re: Setting Up Perl for CGI use
by RayRay459 (Pilgrim) on Aug 16, 2001 at 23:26 UTC
    Anon monk, If you are using ActivePerl's latest version, it has a cgi.pm module built in. Ray