Skip to content

Commit 9a352b8

Browse files
committed
refactor prereq keys into constant
1 parent 37647a2 commit 9a352b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/ExtUtils/MakeMaker.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ our @EXPORT_OK = qw($VERSION &neatvalue &mkbootstrap &mksymlists
3939
&WriteEmptyMakefile &open_for_writing &write_file_via_tmp
4040
&_sprintf562);
4141

42+
my @PREREQ_KEYS = qw(PREREQ_PM BUILD_REQUIRES CONFIGURE_REQUIRES TEST_REQUIRES);
43+
4244
# These will go away once the last of the Win32 & VMS specific code is
4345
# purged.
4446
my $Is_VMS = $^O eq 'VMS';
@@ -444,7 +446,7 @@ sub new {
444446

445447
# Cleanup all the module requirement bits
446448
my %key2cmr;
447-
for my $key (qw(PREREQ_PM BUILD_REQUIRES CONFIGURE_REQUIRES TEST_REQUIRES)) {
449+
for my $key (@PREREQ_KEYS) {
448450
$self->{$key} ||= {};
449451
if (_has_cpan_meta_requirements) {
450452
my $cmr = CPAN::Meta::Requirements->from_string_hash(

0 commit comments

Comments
 (0)