Perl

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
(CGI::Application)
Line 2: Line 2:
===Modules===
===Modules===
====CGI::Application====
====CGI::Application====
 +
*builds upon CGI adding a structure for writing truly reusable Web-applications
 +
*"run-mode" - single screen of an application
 +
*"Mode Parameter" is used to store (and retrieve) the current run-mode of your application
 +
*maps each run-mode to a specific Perl subroutine ("Run-Mode Method") that implements the behavior of a single run-mode
 +
*an "abstract class", and is only used via inheritance
 +
package Your::Web::Application;
 +
use base 'CGI::Application';
 +
*setup() method defines a map between run-modes and run-mode methods
 +
*
 +
References
*[http://www.perl.com/pub/a/2001/06/05/cgi.html Using CGI::Application]
*[http://www.perl.com/pub/a/2001/06/05/cgi.html Using CGI::Application]
*[http://search.cpan.org/~markstos/CGI-Application-4.05/lib/CGI/Application.pm CPAN]
*[http://search.cpan.org/~markstos/CGI-Application-4.05/lib/CGI/Application.pm CPAN]

Revision as of 15:08, 27 March 2006

Contents

CGI

Modules

CGI::Application

  • builds upon CGI adding a structure for writing truly reusable Web-applications
  • "run-mode" - single screen of an application
  • "Mode Parameter" is used to store (and retrieve) the current run-mode of your application
  • maps each run-mode to a specific Perl subroutine ("Run-Mode Method") that implements the behavior of a single run-mode
  • an "abstract class", and is only used via inheritance
package Your::Web::Application;
use base 'CGI::Application';
  • setup() method defines a map between run-modes and run-mode methods

References

CGI::Builder

Personal tools