Skip to content

Instantly share code, notes, and snippets.

@jjn1056
Created July 15, 2010 20:13
Show Gist options
  • Save jjn1056/477457 to your computer and use it in GitHub Desktop.
Save jjn1056/477457 to your computer and use it in GitHub Desktop.
if ($ENV{MOD_PERL}) {
# FIXME - Immutable
$class->meta->add_method(handler => sub {
my $r = shift;
my $app = $class->psgi_app;
use Plack::Handler::Apache2;
Plack::Handler::Apache2->call_app($r, $app);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment