Mod perl: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
m Quick-adding category "Cross-platform software" (using HotCat)
Line 43: Line 43:
[[Category:Perl]]
[[Category:Perl]]
[[Category:Articles with underscores in the title]]
[[Category:Articles with underscores in the title]]
[[Category:Cross-platform software]]


[[de:mod_perl]]
[[de:mod_perl]]

Revision as of 22:41, 10 October 2008

mod_perl
Developer(s)Apache Software Foundation
Stable release
2.0.3 / November 28, 2006 (2006-11-28)
Repository
Operating systemCross-platform
PlatformPerl
TypePerl module for Apache HTTP server
LicenseApache License 2.0
Websitehttp://perl.apache.org/

mod_perl is an optional module for the Apache HTTP server. It embeds a Perl interpreter into the Apache server, so that dynamic content produced by Perl scripts can be served in response to incoming requests, without the significant overhead of re-launching the Perl interpreter for each request. As Lincoln D. Stein defined mod_perl in his words:

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!

mod_perl can emulate a CGI environment, so that existing Perl CGI scripts can benefit from the performance boost without having to be re-written.

Unlike CGI (and most other web application environments), mod_perl provides complete access to the Apache API, allowing programmers to write handlers for all phases in the Apache request cycle, manipulate Apache's internal tables and state mechanisms, share data between Apache processes or threads, alter or extend the Apache configuration file parser, and add Perl code to the configuration file itself, among other things.

See also

External links