Douglas Riordan wrote: >On 6/27/05, Philip M. Gollucci <[EMAIL PROTECTED]> wrote: > Douglas Riordan wrote: > > >from Apache2::Const's perldoc > >use Apache2::Const qw(OK); > >compiles imports the OK constant. > > > >use Apache2::Const -compile => qw(OK); > >only compiles the OK constant in which case i would have to use > >return Apache2::Const::OK > > > > > I agree with the perldoc. > > Whats this coming from then ? > > Constant subroutine My::OK redefined at > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/ModPerl/Util.pm > line 66.
As you noted, I think the problem you are having is the same as the one I was having. I had to do two things to get the reload module to work and not segfault. First, I went back to the code in the old Reload.pm module. Second, and more importantly, I had to change all of the constants used in return statements (e.g. 'return OK') to 'return Apache2::Const::OK' or 'return REDIRECT' to 'return Apache2::Const::REDIRECT'. Whereever any of the Apache2 constants were used I had to change them from the bareword to the 'Apache2::Const::OK' form in order to get the Reload.pm module to stop segfaulting.