The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use HTML::Mason::PSGIHandler;

my $h = HTML::Mason::PSGIHandler->new(
    comp_root => $ENV{DOCUMENT_ROOT} || "$ENV{HOME}/Sites",
);

my $handler = sub { $h->handle_psgi(@_) };