Skip to content

Commit

Permalink
Improved new() parameter documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromatic committed Sep 30, 2011
1 parent 8242f88 commit 82c3e53
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/Plack/App/WrapCGI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,33 @@ PSGI server as a PSGI application.
See also L<Plack::App::CGIBin> if you have a directory that contains a
lot of CGI scripts and serve them like Apache's mod_cgi.
=head1 METHODS
=over 4
=item new
my $app = Plack::App::WrapCGI->new(%args);
Creates a new PSGI application using the given script. I<%args> has two
parameters:
=over 8
=item script
The path to a CGI-style program. This is a required parameter.
=item execute
An optional parameter. When set to a true value, this app will run the script
with a CGI-style C<fork>/C<exec> model. Note that you may run programs written
in other languages with this approach.
=back
=back
=head1 AUTHOR
Tatsuhiko Miyagawa
Expand Down

0 comments on commit 82c3e53

Please sign in to comment.