(undef, my $data, my $func) = @_;
return if $data->{guard};
return unless $func !~ /::/ and not exists $core{$func};
- local $data->{guard} = 1;
+ $data->{guard} = 1;
my $hints = (caller 0)[10];
if ($hints and $hints->{subs__auto}) {
my $mod = $func . '.pm';
} else {
_reset($data->{pkg}, $func);
}
+ $data->{guard} = 0;
return;
}
sub _store {
(undef, my $data, my $func) = @_;
return if $data->{guard};
- local $data->{guard} = 1;
+ $data->{guard} = 1;
_reset($data->{pkg}, $func);
+ $data->{guard} = 0;
return;
}