perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus R. Popetz" <>
Subject Re: development?
Date Sat, 07 Apr 2001 20:10:31 GMT
I believe, if your packages are included in @INC, when their mod times 
change, mod_perl will reload them.  You probably need a perl script 
executed at apache startup that adds them into the parent processes copy of 


At 12:52 PM 4/7/01, Kee Hinckley wrote:
>Hash: SHA1
>At 1:26 PM -0400 4/7/01, <> wrote:
> >I have just started working on a web site using emb perl.  We have
> >migrated alot of our scripts directly, but some of our pages would be
> >better handled as embperl.
> >
> >Anyway, I have just begun, and have found that as I modify packages, I
> >am having to restart apache.  I assume this is mod_perl compiling the
> >package in.  Is there any thing I can do to force a reload of the
> >modules without restarting apache during development?
>Been there.  Two possibilities.
>1.  Enable Apache::Reload in the server and have your packages
>include it.  Two potential issues.  The released version of
>Apache::Reload won't work properly if your Embperl pages call "use
>lib" or otherwise change @INC.  I have patches.  And, I've had some
>problems with Apache::Reload and EmbperlObject which I haven't had
>time to track down yet.
>2. Add the following line to the Embperl pages you are working on.
>         [- $req_rec->child_terminate() if ($req_rec); -]
>(The if condition is just incase you call it from outside of
>mod_perl, I occasionally do quick tests by running my HTML pages from
>Embperl by hand.)  That will ensure that this process will terminate
>as soon as it's done serving the page.  Very inefficient, but ensures
>that the package is no longer loaded.  Just don't forget to take it
>out once you are done.
>- --
>Kee Hinckley - Somewhere.Com, LLC
>I'm not sure which upsets me more: that people are so unwilling to accept
>responsibility for their own actions, or that they are so eager to regulate
>everyone else's.
>Version: PGPfreeware 7.0.3 for non-commercial use <>
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message