I've been reading the mod_perl performance docs, and have a few yes/no-style (I hope) questions.
First, a dead link. The "Preload Perl modules at server startup" link that's visible here: http://perl.apache.org/docs/1.0/guide/performance.html#Choosing_MaxRequestsP erChild ... is chopped. The link should be: "http://perl.apache.org/docs/1.0/guide/performance.html#Preloading_Perl_Modu les_at_Server_Startup". Questions (using DBI as an example*): 1. If my preloaded (via startup.pl) "my.pm" module uses DBI, should I explicitly "use DBI ()" in startup.pl as well? 2. Related to that, is it then kosher for my (non-preloaded Mason) "my.html" component to call a DBI method directly (e.g., "$dbH->disconnect")? Or... 3. Should all calls to DBI from my ".html" components always be made indirectly, via (for example) the preloaded "my.pm" module (e.g. calling "$myH->myDisconnect")? 4. I read about "use DBI" vs. "use DBI ()". Does this hold true for my own modules, too? (I'm asking, because I'm looking at someone's startup.pl file, and they're only using "()" for the CPAN modules, not their own.) *I know DBI is a bit of a special case (e.g., preload via Apache::DBI, no need to call disconnect, etc.). I'm just using it as an example CPAN module for my questions... -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html