<Perl> use Apache::PerlSections ( ); # code goes here Apache::PerlSections->store("httpd_config.pl"); </Perl>
You can then require( ) that file in some other <Perl>section. If you have the whole server configuration in Perl, you can start the server using the following trick:
panic% httpd -C "PerlRequire httpd_config.pl"
Apache will fetch all the configuration directives from httpd_config.pl, so you don't need httpd.conf at all.