NAME
CGI::Ex::App::Constants - Easier access to magic App values
VERSION
version 2.55
SYNOPSIS
use base qw(CGI::Ex::App);
use CGI::Ex::App::Constants; # load all
use CGI::Ex::App::Constants qw(:App); # also load all
use CGI::Ex::App qw(:App); # also load all
__PACKAGE__->navigate;
sub main_run_step {
my $self = shift;
$self->cgix->print_content_type;
print "Hello world\n";
return App__run_step__request_completed;
}
# you can request only certain tags
use CGI::Ex::App::Constants qw(:App__run_step);
use CGI::Ex::App qw(:App__run_step);
# you can request only certain constants
use CGI::Ex::App::Constants qw(App__run_step__request_completed);
use CGI::Ex::App qw(App__run_step__request_completed);
CONSTANTS
To see a list of the importable tags type:
perl -MCGI::Ex::App::Constants -e 'CGI::Ex::App::Constants::tags()'
To see a list of the importable constants type:
perl -MCGI::Ex::App::Constants -e 'CGI::Ex::App::Constants::constants()'
To see a little more discussion about the hooks and other CGI::Ex::App options type:
perl -MCGI::Ex::App::Constants -e 'CGI::Ex::App::Constants::details()'