[perl #85638] Docs for 'inherit from yourself' warning in base.pm
authorRobin Barker <rmbarker.cpan@btinternet.com>
Tue, 8 Mar 2011 00:36:39 +0000 (16:36 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 8 Mar 2011 00:56:19 +0000 (16:56 -0800)
The "inherit from yourself" is triggered by
C<package Foo; use base 'Foo';> not C<use Foo; use base 'Foo';>
as stated in the documentation.

dist/base/lib/base.pm

index 7f3cc55..8c60b61 100644 (file)
@@ -243,7 +243,7 @@ found in your path.
 
 Attempting to inherit from yourself generates a warning.
 
-    use Foo;
+    package Foo;
     use base 'Foo';
 
 =back