1CGI::Ex::App::ConstantsU(s3e)r Contributed Perl DocumentaCtGiIo:n:Ex::App::Constants(3)
2
3
4
6 CGI::Ex::App::Constants - Easier access to magic App values
7
9 version 2.50
10
12 use base qw(CGI::Ex::App);
13 use CGI::Ex::App::Constants; # load all
14 use CGI::Ex::App::Constants qw(:App); # also load all
15 use CGI::Ex::App qw(:App); # also load all
16
17 __PACKAGE__->navigate;
18
19 sub main_run_step {
20 my $self = shift;
21
22 $self->cgix->print_content_type;
23 print "Hello world\n";
24
25 return App__run_step__request_completed;
26 }
27
28
29 # you can request only certain tags
30 use CGI::Ex::App::Constants qw(:App__run_step);
31 use CGI::Ex::App qw(:App__run_step);
32
33 # you can request only certain constants
34 use CGI::Ex::App::Constants qw(App__run_step__request_completed);
35 use CGI::Ex::App qw(App__run_step__request_completed);
36
38 To see a list of the importable tags type:
39
40 perl -MCGI::Ex::App::Constants -e 'CGI::Ex::App::Constants::tags()'
41
42 To see a list of the importable constants type:
43
44 perl -MCGI::Ex::App::Constants -e 'CGI::Ex::App::Constants::constants()'
45
46 To see a little more discussion about the hooks and other CGI::Ex::App
47 options type:
48
49 perl -MCGI::Ex::App::Constants -e 'CGI::Ex::App::Constants::details()'
50
51
52
53perl v5.32.1 2021-01-26 CGI::Ex::App::Constants(3)