CGI::Ex...onstants(3)

πŸ“¦
version 2.55 Β· 2 versions
, in fedora 43

πŸ’– 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