I did a *bit* of digging into the underlying code, but couldn't really
figure it out entirely...

the changes list Doug as being the author of the Evil PerlFreshRestart
section of the guide, so perhaps he (or someone else in the know) could go
into more detail?

--Geoff

> -----Original Message-----
> From: Tim Bunce [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 03, 1999 12:30 PM
> To:   Young, Geoffrey S.
> Cc:   'G.W. Haywood'; mod_perl Mailing List
> Subject:      Re: PerlFreshRestart and %INC
> 
> On Fri, Dec 03, 1999 at 12:00:38PM -0500, Young, Geoffrey S. wrote:
> > that's what I meant :)
> > 
> > Since %INC is a hash, and it's order unpredictable, it's possible that
> DBI
> > be re-required before Apache::DBI.  But maybe something else is going on
> > too...
> > 
> > here's the code from the guide:
> > 
> > while (my($k,$v) = each %INC) {
> >       delete $INC{$k};
> >       require $k;
> > }
> 
> Well that would certainly cause the problem.
> 
> But is that _really_ what PerlFreshRestart does? I thought it destroyed
> the entire perl interpreter before then recreating one from scratch?
> 
> I presumed (I've not looked) that it would reload the new interpreter
> in the same way that the original one was and thus would reload modules
> in the same order.
> 
> Tim.

Reply via email to