mod_perl到底是個什麼

bulletming發表於2019-06-03

perl.apache.org

mod_perl brings together the full power of the programming language and the HTTP server. You can use Perl to manage Apache, respond to requests for web pages and much more.

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!
-- Lincoln Stein


mod_perl gives you a persistent Perl interpreter embedded in your web server. This lets you avoid the overhead of starting an external interpreter and avoids the penalty of Perl start-up time, giving you super-fast dynamic content.

As you'd expect from the Perl community, there are hundreds of modules written for mod_perl, everything from persistent database connections, to templating systems, to complete XML content delivery systems. Web sites like and use mod_perl.


我想第一段紅字是很重要的,她這個避免了用perl這種script語言寫cgi指令碼的天生的不足:需要每次啟動Perl

第二段紅字更重要,在Mod_perl框架內,更好的實現了CGI原來一些東西,比如Apache::DBI,只要增加一句話,就可以讓mod_perl裡邊的db連線變成持久的。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/82392/viewspace-434845/,如需轉載,請註明出處,否則將追究法律責任。

相關文章