1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
package DebugScreenApp;
use strict;
use warnings;
use base qw(CGI::Application);
use CGI::Application::Plugin::ViewCode;
use CGI::Application::Plugin::DebugScreen;
sub setup {
my $self = shift;
$self->start_mode('start');
$self->run_modes(start=>'start',die=>'die_abort_finito');
return;
}
sub start {
my $self = shift;
return "Hello world!";
}
sub die_abort_finito {
my $self = shift;
die "Is this really it?";
}
1;
=head1 DESCRIPTION
This CGI script is only a test example. It provides the following run
modes:
=over
=item start - Returns a simple "Hello world" string.
=item view_code - As provided by L<CGI::Application::Plugin::ViewCode>.
=item view_pod - As provided by L<CGI::Application::Plugin::ViewCode>.
=item die - Provided so that one can test
L<CGI::Application::Plugin::DebugScreen>.
|