| (Top) < param() | CGI Headers? > |
Now, write a method for each mode in run_modes().
Start with the default run-mode, 'start':
sub start {
my $webapp = shift;
my $query = $webapp->query;
my $output;
$output .= $query->start_html(-title =>
"Welcome to St. Pat's Drink-o-Mat!");
$output .= $webapp->drink_type_form; # a method we'll add below...
$output .= $query->end_html;
return $output;
} |
(Should be a string containing a valid HTML page.)
|
CGI::Application (v.2.0) |
15 |