CGI::Ex::App::Constants - Easier access to magic App values
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);
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()'
To install CGI::Ex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Ex
CPAN shell
perl -MCPAN -e shell install CGI::Ex
For more information on module installation, please visit the detailed CPAN module installation guide.