More about the undef of package variables.  Sure enough, the variables are
nuked in PerlRun::flush_namespace().  This can be inhibited by removing
them from the script's namespace before termination:

my $name = __PACKAGE__ . '::';
delete($name->{'VARIABLE NAME HERE'});

I notice that the 1.17 bug about undefing subroutines was fixed by adding
some checking code PerlRun::undef_cv_if_owner(), should this same sort of
thing be done for variables as well?

-j

Reply via email to