Matt S Trout > Web-Simple-0.020 > lib/Web/Simple/HackedPlack.pm

Download:
Web-Simple-0.020.tar.gz

Annotate this POD

CPAN RT

New  5
Open  0
View/Report Bugs
Source   Latest Release: Web-Simple-0.030

SYNOPSIS ^

    ## in your .cgi
    #!/usr/bin/perl
    use Plack::Server::CGI;

    # or Plack::Util::load_psgi("/path/to/app.psgi");
    my $app = sub {
        my $env = shift;
        return [
            200,
            [ 'Content-Type' => 'text/plain', 'Content-Length' => 13 ],
            'Hello, world!',
        ];
    };

    Plack::Server::CGI->new->run($app);

SEE ALSO ^

Plack::Server::Base

syntax highlighting: