note
stonecolddevin
<P>Plack should act as a middleware between your code and the web server, there shouldn't really be much need for refactoring. <strike>In fact, it looks like it already has a handler: [https://metacpan.org/pod/Plack::Handler::Apache2].</strike> Sorry, this is going the other way, plack -> mod_perl. Regardless, I <b>think</b> the Plack documentation mentions somewhere about routing everything properly through Plack to your existing mod_perl app code: [https://metacpan.org/pod/PSGI::FAQ#I-have-a-CGI-or-mod_perl-application-that-I-want-to-run-on-PSGI-Plack.-What-should-I-do]</p>
<p>In terms of persistent database connections, I'm not sure how this is tied to mod_perl. However, I recommend looking at [metacpan://DBIx::Connector] as it has a lot of really good connection logic built into it while still being "just DBI".</p><!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-203787">
<p>Three thousand years of beautiful tradition, from Moses to Sandy Koufax, <b>you're god damn right I'm living in the fucking past</b></p>
</div></div>
1114930
1114975