## 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);
Plack::Server::Base
To install Web::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::Simple
CPAN shell
perl -MCPAN -e shell install Web::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.