perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sergeant <m...@sergeant.org>
Subject RE: Apache::Reload
Date Thu, 31 Aug 2000 13:35:46 GMT
On Thu, 31 Aug 2000, Geoffrey Young wrote:

> > I'm not fully sure I understand the difference between this and whats
> > there already. However yes, you can drop this from Apache::Dispatch by
> > simply calling register_module() yourself:
> 
> well, I haven't actually tried it yet :)
> 
> but my understanding is that, other than it stat'ing everything, you can
> specify modules, but that requires adding 
>  
> > use Apache::Reload;
> 
> to the code.

Nope. Doesn't require that in 0.04+

> Apache::AuthCookie is a cpan module, so I thought it would be
> nice to be able to use Reload in my subclass and have it stat and reload
> AuthCookie without having to touch the shrink wrapped stuff.
> 
> make sense?  it's still early over here...
> 
> I guess you could always PerlSetVar ReloadModules "Apache::AuthCookie"
> though, but for multiple inheritance, it gets kinda tiresome..

Now I see where you're coming from... Interesting concept. Would it be an
extra option to traverse @ISA?

My suggestion would still be manual, of course. But doesn't require you to
modify the original module. This works though:

use Apache::Reload;
map { Apache::Reload->register_module($_, $INC{$_}) } @ISA;

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org


Mime
View raw message