mod_perl and CGI are no longer recommended for modern perl development. We have Mojolicious, Dancer, Catalyst, Plack, and many other modern frameworks (and libraries). Most of <i>these</i> will run circles around mod_perl, without giving you the horror that is mod_perl&#x27;s global variables + namespacing hacks and its propensity to segfault.