CGI::Ex...onstants(3)
π NAME π
okay so bestie, gather round π«Ά β this is the manual page for CGI::Ex...onstants(3) (yes that's the page title, it's a little truncated, it's giving "my name got cut off in the group chat" π).
CGI::Ex::App::Constants β Easier access to magic App values β¨
that's it, that's the whole vibe. it hands you the magic-y constant values from the App so you don't have to type out a whole novel of a string every time. slay.
π¦ VERSION π¦
this is version 2.55 π
β¨ SYNOPSIS β¨
okay here's the whole look, in its natural habitat:
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);
so yeah β you can load all of it, or be picky and load just certain tags, or even more picky and load just certain constants. choose your own adventure, bestie π
π CONSTANTS π
not me being the kind of page that makes you ask it things π β the way that you find out what's importable is by literally running perl at it. iconic.
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()'
and if you want 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()'
ngl, these three one-liners are the whole main character energy of this page β run them and they'll spill everything π
that's the whole page, no cap β¨ this little beauty comes from the User Contributed Perl Documentation collection, it's sitting at perl v5.42.0 dated 2025-07-25, and it was living its life as CGI::Ex...onstants(3) the whole time. mwah π go forth and constant, bestie π¦
π¦ where this page comes from
- fedora 43: perl-CGI-Ex 2.55-6.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms