note
donarb
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.<br><br>
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.<br><br>
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.
518869
518922