# bin/myblog.psgi use Plack::Builder; my $app = sub { ... }; builder { enable "+MyBlog::Middleware::HandleExceptions"; $app; };