perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kee Hinckley <>
Subject Re: development?
Date Sat, 07 Apr 2001 19:52:41 GMT
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:

View raw message