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
- PerlRun and Exporter() vars John M Vinopal
- Re: PerlRun and Exporter() vars John M Vinopal
- Re: PerlRun and Exporter() vars Doug MacEachern
- Not able to read directives/Static vs. Dynamic ?!... Stathy G. Touloumis
- Re: Not able to read directives/Static vs. Dy... Stathy G. Touloumis
- Re: PerlRun and Exporter() vars Eric L. Brine
- Re: PerlRun and Exporter() vars Stas Bekman
