summaryrefslogtreecommitdiff
path: root/lib/base.pm
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-05-01 19:09:21 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-05-01 19:09:21 +0000
commit7668bf4dc1ed94a756f3bd5e7cb95caf14c88e1f (patch)
tree1ddbd6fa41e87245063b3ebc67ef4b668e7cfddb /lib/base.pm
parente8f84f558071a9089231d1926b6882ff7a9af9b8 (diff)
downloadperl-7668bf4dc1ed94a756f3bd5e7cb95caf14c88e1f.tar.gz
Fix for base.pm clobbering $VERSION
p4raw-id: //depot/perlio@9936
Diffstat (limited to 'lib/base.pm')
-rw-r--r--lib/base.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.pm b/lib/base.pm
index 8db7d72c25..681e8f03e8 100644
--- a/lib/base.pm
+++ b/lib/base.pm
@@ -56,7 +56,7 @@ sub import {
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.
@@ -68,7 +68,7 @@ sub import {
"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