next if $pkg->isa($base);
push @{"$pkg\::ISA"}, $base;
my $vglob;
- unless ($vglob = ${"$base\::"}{VERSION} and $vglob{SCALAR}) {
+ unless (${*{"$base\::VERSION"}{SCALAR}}) {
eval "require $base";
# Only ignore "Can't locate" errors from our eval require.
# Other fatal errors (syntax etc) must be reported.
"which defines that package first.)");
}
${"$base\::VERSION"} = "-1, set by base.pm"
- unless $vglob = ${"$base\::"}{VERSION} and $vglob{SCALAR};
+ unless ${*{"$base\::VERSION"}{SCALAR}};
}
# A simple test like (defined %{"$base\::FIELDS"}) will