Fix MM doc's use of "SUPER::"
authorChip Salzenberg <chip@atlantic.net>
Tue, 1 Apr 1997 00:01:35 +0000 (12:01 +1200)
committerChip Salzenberg <chip@atlantic.net>
Tue, 1 Apr 1997 00:01:35 +0000 (12:01 +1200)
(this is the same change as commit acce7d4e04d89207299003c3e80c69d50bc82069, but as applied)

lib/ExtUtils/MakeMaker.pm

index eb49f3e..0898b75 100644 (file)
@@ -1687,7 +1687,8 @@ either say:
 or you can edit the default by saying something like:
 
        sub MY::c_o {
-            my($inherited) = shift->SUPER::c_o(@_);
+           package MY; # so that "SUPER" works right
+           my $inherited = shift->SUPER::c_o(@_);
            $inherited =~ s/old text/new text/;
            $inherited;
        }