On Tue, May 18, 2004 at 11:23:59AM -0700, Philippe M. Chiasson wrote:

> Hi, I've been trying to use Devel::Cover under mod_perl, and mod_perl
> being what it is, things aren't quite working right. After a little
> bit of probing, I've found the source of the problem.

[ snip problems and solutions ]

Thanks very much for the diagnosis and patch.

> The other issue is that CHECK/INIT blocks are not being called proprely 
> under
> mod_perl 1.x, so moving the CHECK/INIT code in a sub of its own, allows the
> mod_perl user to do this in his/her startup script:
> 
>  use Devel::Cover;
>  Devel::Cover::check;
>  Devel::Cover::set_first_init_and_end;

I'm probably showing my lack of knowledge, but is there any reason why I
couldn't check $ENV{MOD_PERL} and call those two subs in
Devel::Cover::import() ?

> Hope this is helpfull and I hope you'll be able to integrate this in
> your next scheduled release of Devel::Cover

I'm not much on schedules - I generally just release something when
there's enough to warrant it and I've got a little time to put the
release together.  I wanted to get a release out this week, but I won't
be able to do that now, so it will have to be next week.

Your patch is very helpful, and I've already integrated it into my
development version.  I've also added a little documentation, based on
your message, but I want to flesh it out a little.

I need to set up an environment to check all this, too.

Thanks again,

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to