in reply to Re^3: apache2::reload and base.pm
in thread apache2::reload and base.pm

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        

Replies are listed 'Best First'.
Re^5: apache2::reload and base.pm (re-import)
by jshinb2g (Initiate) on Feb 17, 2010 at 08:21 UTC
    Thanks tye, I actually have tried this and sadly still get the same error.
Re^5: apache2::reload and base.pm (re-import)
by jshinb2g (Initiate) on Feb 17, 2010 at 08:53 UTC