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