Document #11134 and add the new symbols to the list of
[p5sagit/p5-mst-13.2.git] / lib / base.pm
index 8db7d72..4a71c85 100644 (file)
@@ -45,7 +45,7 @@ L<fields>
 package base;
 
 use 5.005_64;
-our $VERSION = "1.01";
+our $VERSION = "1.02";
 
 sub import {
     my $class = shift;
@@ -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