Fix a PAUSE indexing issue
gfx [Sat, 5 Dec 2009 07:05:18 +0000 (16:05 +0900)]
lib/Mouse/Util.pm

index 1355aa7..44d6759 100644 (file)
@@ -140,13 +140,14 @@ BEGIN {
         # See also MRO::Compat::__get_linear_isa.
         $get_linear_isa = sub ($;$){
             my($classname, $type) = @_;
+            package # hide from PAUSE
+                Class::C3;
             if(!defined $type){
-                package Class::C3;
                 our %MRO;
                 $type = exists $MRO{$classname} ? 'c3' : 'dfs';
             }
             return $type eq 'c3'
-                ? [Class::C3::calculateMRO($classname)]
+                ? [calculateMRO($classname)]
                 : $_get_linear_isa_dfs->($classname);\r
         };
     }