in reply to apache2::reload and base.pm

1) don't use base 2) try use parent

Replies are listed 'Best First'.
Re^2: apache2::reload and base.pm
by jshinb2g (Initiate) on Feb 17, 2010 at 05:36 UTC
    getting same exact behavior... undefined subroutines.

        The correct caveat for this case is actually a little further down under the "Problems with Scripts Running with Registry Handlers that Cache the Code" heading. In particular, "cached code won't run 'use My::Utils;' again". Similarly, "use base ..." doesn't get run again therefore base::import doesn't initialize @...::ISA again.

        A solution (as mentioned) is to not do such things at compile-time. Instead use, for example:

        require base; base->import( qw< ... > );

        Of course, not having such stuff initialized at compile-time might break code structured in unfortunate ways, so test it.

        - tye        

        I've actually read that and tried to mess around with base.pm, but nothing will work... Can I just not use base and expect Apache2::Reload to ever work correctly ?