Subject: | @MM_Sections and @Overridable now private? |
Revision 4191 ("DIE use vars DIE") was a bit too radical for my taste.
It made the global variables @MM_Sections and @Overridable
file-lexicals. Although this was never documented, it was a convenient
way to override standard MakeMaker behaviour. I'd wish we could have
them back as globals or have a way to influence them at some API level.
Given that MakeMaker is considered a dead end I'm reluctant to think
about a new API and would rather ask for simply making the two variables
global again like in attached patch.
Thanks,
Subject: | makemaker-mmsections-global.patch |
Index: lib/ExtUtils/MakeMaker.pm
===================================================================
--- lib/ExtUtils/MakeMaker.pm (revision 4297)
+++ lib/ExtUtils/MakeMaker.pm (working copy)
@@ -13,8 +13,8 @@
our $Verbose = 0; # exported
our @Parent; # needs to be localized
our @Get_from_Config; # referenced by MM_Unix
-my @MM_Sections;
-my @Overridable;
+our @MM_Sections;
+our @Overridable;
my @Prepend_parent;
my %Recognized_Att_Keys;