Query: plack::handler::cgi
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Plack::Handler::CGI(3pm) User Contributed Perl Documentation Plack::Handler::CGI(3pm)NAMEPlack::Handler::CGI - CGI handler for PlackSYNOPSISWant to run PSGI application as a CGI script? Rename .psgi to .cgi and change the shebang line like: #!/usr/bin/env plackup # rest of the file can be the same as other .psgi file You can alternatively create a .cgi file that contains something like: #!/usr/bin/perl use Plack::Loader; my $app = Plack::Util::load_psgi("/path/to/app.psgi"); Plack::Loader->auto->run($app); This will auto-recognize the CGI environment variable to load this class. If you really want to explicitly load the CGI handler, you can. For instance you might do this when you want to embed a PSGI application server built into CGI-compatible perl-based web server: use Plack::Handler::CGI; Plack::Handler::CGI->new->run($app);DESCRIPTIONThis is a handler module to run any PSGI application as a CGI script.UTILITY METHODSsetup_env() my $env = Plack::Handler::CGI->setup_env(); my $env = Plack::Handler::CGI->setup_env(\%override_env); Sets up the PSGI environment hash for a CGI request from %ENV> and returns it. You can can provide a hashref of key/value pairs to override the defaults if you would like.SEE ALSOPlack perl v5.14.2 2011-06-22 Plack::Handler::CGI(3pm)
Related Man Pages |
---|
plack(3pm) - debian |
plack::handler(3pm) - debian |
plack::middleware(3pm) - debian |
plack::runner(3pm) - debian |
plack::test(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
DOS/Windows CR to a UNIX LF 17 MB text file |
Pop up Confirmation Box |
how to get the specified content of the text into a variable. |
Perl error with $ENV variable |
PERL-CGI learning |