use Plack::Builder; my $app = sub { return [ 200, [ 'Content-Type' => 'text/html' ], [ 'Hello World' ] ]; }; builder { enable 'Debug'; $app; };