return if $data->{guard} or $func =~ /::/ or exists $core{$func};
local $data->{guard} = 1;
+ my $pkg = $data->{pkg};
+
my $hints = (caller 0)[10];
if ($hints and $hints->{+(__PACKAGE__)}) {
my $pm = $func . '.pm';
return if exists $INC{$pm};
- my $fqn = $data->{pkg} . '::' . $func;
+ my $fqn = $pkg . '::' . $func;
my $cb = do { no strict 'refs'; *$fqn{CODE} };
if ($cb) {
if (_REFCNT_PLACEHOLDERS and defined(my $data = getdata(&$cb, $tag))) {
no strict 'refs';
*$fqn = $cb;
} else {
- _reset($data->{pkg}, $func);
+ _reset($pkg, $func);
}
return;