| (Top) < Building the Drinkomat: the Module | mode_param() > |
We're creating an object that is a subclass of CGI::Application
setup() initializes the object
sub setup {
my $webapp = shift;
$webapp->mode_param('mode');
$webapp->start_mode('start');
$webapp->run_modes(
start => 'start',
choose_type => 'choose_type',
submit_order => 'submit_order',
);
$webapp->param(dbh => dbconnect());
} |
Methods that are inherited from CGI::Application:
|
CGI::Application (v.2.0) |
10 |