perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Schuetz <n...@hellaweb.com>
Subject RE: View contents of loaded global.asa
Date Mon, 19 Jul 2004 14:39:15 GMT

OK I finally figured it out. All I needed to do is specify:

package Apache::ASP::TYPHOON; 

in all source files I want to use my custom subroutines in global.asa.

Thanks,

Nick


Quoting Nicholas Schuetz <nick@hellaweb.com>:

> 
> Thanks for the reply, Warren. I have already taken this aproach. I know the
> global.asa I am working with is in fact the one being compiled. One very
> important point I need to bring up is that I have UniquePackages 1 set. If I
> unset this my app works fine. This exact configuration use to work in v2.19
> Apache::ASP. I am now using the latest stable version 2.57. Even when
> UniquePackages 1 is set.
> 
> I have tried explicitly naming the GlobalPackage to Apache::ASP::TYPHOON.
> When I try to use Apache::ASP::TYPHOON it says it can not find this package.
> Therefore I can't use my custom subroutine(s). Shouldn't this  package be
> compiling during runtime? Shouldn't it be appending that packages PATH to
> @INC? Should I be putting my UniquePackaged sub routines in a file other
> than the VirtualHost specific Global/global.asa PATH/file?
> 
> Quoting Warren Young <warren@etr-usa.com>:
> 
> > Nicholas Schuetz wrote:
> > > Does anyone know how I can view the contents of the global.asa 
> > > loaded
> > durring
> > > runtime. 
> > 
> > That would be chasing the symptom, not the cause.
> > 
> > Instead, convince yourself directly that the global.asa you think is 
> > running is in fact being compiled.  Add something like this to
> > Script_OnStart:
> > 
> > 	print STDERR "Oooga booga\n";
> > 
> > > When I reference check_db_connection () from one of my asp files I 
> > > get an undefined sub routine error.
> > 
> > You could say this instead of the above for more info:
> > 
> > 	print STDERR "Oooga booga ", ref &\check_db_connection, "\n";
> > 
> > It should say "Oooga booga CODE".
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org For additional 
> > commands, e-mail: asp-help@perl.apache.org
> > 
> > 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
> 
> 



----- End forwarded message -----



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message