Mailing List Archive

"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 [ In reply to ]
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