(Top) < Example Application: | Building the Drinkomat: the Module > |
First create a instance script
drink.cgi
:#!/usr/bin/perl -w use Drinkomat; use strict; my $webapp = new Drinkomat(); # or: = Drinkomat->new(); $webapp->run(); __END__ |
This script:
(new() can be passed some configuration options)
CGI::Application (v.2.0) |
8 |