Skip to content

Commit f426c6e

Browse files
committed
MM_Any.pm: in _mymeta_from_meta deal with underbars in version more gracefully
Use eval to deal with underbars in the version number.
1 parent bedcec9 commit f426c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ExtUtils/MM_Any.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ sub _mymeta_from_meta {
16711671
# rolled their own tarball rather than using "make dist".
16721672
if ($meta->{generated_by} &&
16731673
$meta->{generated_by} =~ /ExtUtils::MakeMaker version ([\d\._]+)/) {
1674-
my $eummv = do { no warnings; $1+0; };
1674+
my $eummv = do { no warnings; eval("$1") + 0; }; # deal with underbars gracefully
16751675
if ($eummv < 6.2501) {
16761676
return;
16771677
}

0 commit comments

Comments
 (0)