WATCH_ME is populated by subclasses that register on load.

on my dev server, the real WATCH_ME var has about 96 registered modules in it. everything works perfect until i reload.

####################
package myapp::tester::plugin;
our $var= 'hello';
myapp::tester::register_plugin(__PACKAGE__);
1;
####################

the correct sub in the superclass is:

        sub register_plugin {
                my ( $package )= @_;
                $WATCH_ME{$package}= \ ${$package.'::var'};
        }

$var is actually a regex. this is all essentially the guts of the dispatcher to a factory class



On Nov 18, 2007, at 10:37 PM, Perrin Harkins wrote:

On Nov 18, 2007 7:30 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
below is a summation of my problem.  when a2::reload recompiles off
of a changed sub, i lose the entire WATCH_ME var.

What would this code do if it was working?  %WATCH_ME doesn't look
like anything ever gets put into it.  Does this compile with strict
and warnings on?

- Perrin

Reply via email to