use Plack::Runner; my $app = sub { return [ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ], [ 'Goodbye, world!Goodbye, world!' ] ] }; my $runner = Plack::Runner->new; $runner->parse_options('--host' => 'localhost', '--port' => 8080); $runner->run($app);