Re: Perl site - Elementary question



kejoseph@xxxxxxxxxxx wrote:

> 1. What is the difference between mod_perl 2.0 , lwp module and cgi
> module ?

Errrrm... huh?

I quote from a few man pages here:
"The libwww-perl collection is a set of Perl modules which provides
simple and consistent application programming interface (API) to the
World-Wide Web. The main focus of the library is to provide classes and
functions that allow you to write WWW clients."

" CGI - Simple Common Gateway Interface Class "

"mod_perl is more than CGI scripting on steroids. It is a whole new way
to create dynamic content by utilizing the full power of the Apache web
server to create stateful sessions, customized user authentication
systems, smart proxies and much more. Yet, magically, your old CGI
scripts will continue to work and work very fast indeed. With mod_perl
you give up nothing and gain so much!
-- Lincoln Stein"

Of the three things you asked about CGI and mod_perl have **some**
things in common but only superficially. The CGI CPAN module provides
you the ability write scripts to process HTML forms server side.

The mod_perl package allows you to extend the functionality of the
Apache server **and** process HTML forms.

LWP is a set of libraries that allow you to write scripts that behave as
a browser.

Sorta like comparing apples, pears and Ford trucks.


> 2. I have setup Apache 2.0 with mod_perl 2.0. I have also created the
> form which contains the information the user will send. How do I gather
> or receive the form information (sent via html POST) in perl - should I
> use lwp or cgi module or is there something with mod_perl 2.0 ?
>
>

Doing a Google on "CGI tutorial" yielded a wealth of pages that deal
with the subject of getting started writing CGI scripts. Starting with
http://www.cgi101.com/book/.



--
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Peter L. Berghold Peter@xxxxxxxxxxxx
"Those who fail to learn from history are condemned to repeat it."
AIM: redcowdawg Yahoo IM: blue_cowdawg ICQ: 11455958
.



Relevant Pages

  • Re: revisiting web development in Perl...where to start?
    ... The CGI specification mandates that each invocation of a CGI ... crowded with no one technology standing out from the crowd. ... (PHP, CF, JSP, ASP, and the like). ... A casual google for one of these PHP scripts (a ...
    (comp.lang.perl.misc)
  • Re: Problems getting Python scripts to run on server
    ... directory its own .htaccess file containing: ... When I tried the scripts in the other folder (the non cgi- ... a .cgi extension instead of being in a cgi-bin directory. ... AllowOverride FileInfo ...
    (comp.lang.python)
  • Re: Python equivalent of Perl-ISAPI?
    ... I need something that will do cgi scripts (a lot of which I already ... Except I need cgi, not asp, for the reasons i gave. ... Python or Perl. ...
    (comp.lang.python)
  • Re: Python equivalent of Perl-ISAPI?
    ... I need something that will do cgi scripts (a lot of which I already ... Except I need cgi, not asp, for the reasons i gave. ... Python or Perl. ...
    (comp.lang.python)
  • Using sbox with htaccess and ErrorDocument
    ... safely grant CGI authoring privileges to untrusted clients. ... Webmaster to place client's CGI scripts in a chroot'ed shell restricted ... A number of large ISPs use sbox, ...
    (comp.infosystems.www.servers.unix)