1Plack::App::WrapCGI(3)User Contributed Perl DocumentationPlack::App::WrapCGI(3)
2
3
4

NAME

6       Plack::App::WrapCGI - Compiles a CGI script as PSGI application
7

SYNOPSIS

9         use Plack::App::WrapCGI;
10
11         my $app = Plack::App::WrapCGI->new(script => "/path/to/script.pl")->to_app;
12
13         # if you want to execute as a real CGI script
14         my $app = Plack::App::WrapCGI->new(script => "/path/to/script.rb", execute => 1)->to_app;
15

DESCRIPTION

17       Plack::App::WrapCGI compiles a CGI script into a PSGI application using
18       CGI::Compile and CGI::Emulate::PSGI, and runs it with any PSGI server
19       as a PSGI application.
20
21       See also Plack::App::CGIBin if you have a directory that contains a lot
22       of CGI scripts and serve them like Apache's mod_cgi.
23

AUTHOR

25       Tatsuhiko Miyagawa
26

SEE ALSO

28       Plack::App::CGIBin
29
30
31
32perl v5.12.3                      2011-06-22            Plack::App::WrapCGI(3)
Impressum