Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: cgi or mod_perl

by donarb (Beadle)
on Dec 24, 2005 at 19:34 UTC ( [id://518924]=note: print w/replies, xml ) Need Help??


in reply to Re: cgi or mod_perl
in thread cgi or mod_perl

Note that using cgi is not the same as using the CGI.pm module. The main difference between cgi and mod_perl is that for mod_perl the perl interpreter is embedded in the Apache process.

When writing/testing a web application, one advantage of cgi over mod_perl is that because cgi reloads your modules for each request, you can easily make changes without having to restart the server. mod_perl does have some tricks to get around that though.

The CGI.pm module helps make using cgi on a server easier, it can parse POST parameters, bake cookies, and generate compliant HTML code. With mod_perl some of that functionality is provided by the Apache:: modules, but you can use some parts of CGI.pm in mod_perl as well. So by all means, whether you use cgi or mod_perl, you should learn how to work with CGI.pm.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://518924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-25 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found