Skip to content

Commit

Permalink
Use $arg to match @argv in Makefile.PL
Browse files Browse the repository at this point in the history
As the default pattern match was used, $arg was not evaluated.  This
fixes warning "Use of uninitialized value $_ in pattern match (m//)
at Makefile.PL line 19".
  • Loading branch information
bluhm committed Apr 6, 2021
1 parent 97e4713 commit 066f953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Config qw(%Config);
my %cfg;
@cfg{qw(cc ccflags ldflags)} = @Config{qw(cc ccflags ldflags)};
for my $arg (@ARGV) {
if ( /^(CC|CCFLAGS|LDFLAGS)=(.*)/i ) {
if ( $arg =~ /^(CC|CCFLAGS|LDFLAGS)=(.*)/i ) {
$cfg{lc($1)} = $2;
}
}
Expand Down

0 comments on commit 066f953

Please sign in to comment.