First ... Back ... Next ... Last ... (Notes home)

mod_perl: Better than CGI

  • A plug-in to the Apache Web server that provides a persistent Perl interpreter, built into the Web server.
  • mod_perl is a project of the Apache Software Foundation
  • Compared to CGI, mod_perl offers better speed and the availability of persistently open files and database connections.
  • Variables may be associated with transactions spanning page clicks.
  • Some very popular sites, including Slashdot and Wired, use mod_perl
  • Any Perl CGI program will run faster with mod_perl, without changes, simply by using a built-in interpreter
  • By adding additional mod_perl code, programs may be enhanced to maintain open files, database connections, and persistent variables
  • The main issue is that mod_perl version 2 doesn't interoperate safely with Apache version 2. This will be fixed soon, we hope.

First ... Back ... Next ... Last ... (Notes home)

UAF Computer Science
Prof. Greg Newby