A mainstay of the Perl culture, JAPH is a short script that produces the output "Just another Perl hacker." Although written for the beginner or intermediate Perl programmer, this article examines a few simple examples of the JAPH genre that will surprise and engage even the most seasoned devotee.
The author writes "CGI::Application builds upon the bedrock of CGI, adding a structure for writing truly reusable Web-applications. CGI::Application takes what works about CGI and simply provides a structure to negate some of the more onerous programming techniques that have cast an unfavorable light upon it. CGI::Application code is so universal and non-proprietary that it works exceedingly well on any operating system and Web server that supports Perl and CGI. The CGI::Application structure makes it possible for authors to distribute, for the first time, fully functional and sophisticated Web-applications via CPAN.
Based on the Darwinian principle of survival of the fittest, genetic programming uses mutation and replication to produce algorithms for creating ever-improving computer programs. In this column, you'll get to know the genetic algorithm in simple terms. This article provides Perl implementations for some specific tasks, which you can adapt for generic use. To demonstrate the genetic algorithm, the author breeds numbers for fitness to a formula, and letters to form English words.
One of the methods that the web server uses to pass information to a cgi script is through environmental variables. These are created and assigned appropriate values within the environment that the server spawns for the cgi script. This page highlights some of the most commonly used ones, along with a brief description and notes on possible uses for them.