Re: Perl site - Elementary question
- From: "Peter L. Berghold" <peter@xxxxxxxxxxxx>
- Date: Sat, 29 Oct 2005 22:40:53 -0400
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
.
- Prev by Date: Re: windows program return values vs perl return values from a call to system() -- windows post only
- Next by Date: Re: Web form CGI, Security?
- Previous by thread: windows program return values vs perl return values from a call to system() -- windows post only
- Next by thread: Re: Perl site - Elementary question
- Index(es):
Relevant Pages
|