You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Philip Mak <pm...@aaanime.net> on 2004/05/21 06:56:57 UTC
"use" statements in startup.pl v.s. global.asa
Do all the "use" statements in global.asa (e.g. "use DBI;") all have
to be copied into startup.pl, for performance reasons?
I've been doing this all along but it occurs to me it's tedious to
have to change both files whenever I add or remove a package that my
website uses... Does anyone have a better way?
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: "use" statements in startup.pl v.s. global.asa
Posted by Josh Chamas <jo...@chamas.com>.
Philip Mak wrote:
> Do all the "use" statements in global.asa (e.g. "use DBI;") all have
> to be copied into startup.pl, for performance reasons?
>
> I've been doing this all along but it occurs to me it's tedious to
> have to change both files whenever I add or remove a package that my
> website uses... Does anyone have a better way?
>
If you are using Apache::ASP->Loader, then your global.asa will be
compiled in the parent httpd.conf, effectively acting as a startup.pl
with regards to module loading prefork.
Regards,
Josh
________________________________________________________________________
Josh Chamas, Founder | NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com | Apache::ASP - http://www.apache-asp.org
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org