The Servlet API for Perl (libservlet) is a formulation of the Java (TM) Servlet API in Perl. The current version of the API is 2.3.

While the servlet concept originated with Java (TM), its component model is quite natural for Perl as well. By writing servlet applications and deploying them in a servlet container, application authors can spare themselves the effort of writing commonly needed web application infrastructure components for each new project. Furthermore, servlet applications are portable between deployment environments; they can be executed in any servlet container using any process model with only a few configuration changes and no application code changes. Servlet applications are insulated from changes in vendor or platform and are able to portably take advantage of standard web infrastructure services offered by any servlet container.

The current release of libservlet is version 0.9.2.

The web site for libservlet is, and the project development site is


The easiest way to install libservlet is by using the CPAN module to bring down the entire bundle at once:

  perl -MCPAN -e 'install Bundle::libservlet'

The long way is to download the tarball and run through the process manually:

  tar xzvf libservlet-0.9.2.tar.gz
  cd libservlet-0.9.2
  perl Makefile.PL
  make test
  make install


Mailing Lists

Subscription instructions and archives of the following lists are available at the SourceForge project site:


These documents are written for the Java (TM) language, but they are very useful for learning the design of the API and seeing examples of servlets.