The Apache mod_perl Module

The Apache Web server is built using a group of programs referred to as modules. When the Apache Web server receives a request for a particular document, it is sent to several modules, which check to see whether they are supposed to handle the request. To extend the Apache Web server, a user can write new modules in C. Of course, writing new modules in C to extend the functionality of your Web server is not an easy task.

On the other hand, a particular module called mod_perl combines the Perl interpreter with the Apache server. Among other things, this enables you to run your Perl CGI scripts using the mod_perl module, which eliminates the overhead of starting Perl and compiling your scripts every time they’re requested. ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.