Skip to content

Commit

Permalink
MM_Any.pm: in _mymeta_from_meta deal with underbars in version more g…
Browse files Browse the repository at this point in the history
…racefully

Use eval to deal with underbars in the version number.
  • Loading branch information
demerphq committed Mar 1, 2023
1 parent bedcec9 commit f426c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ExtUtils/MM_Any.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ sub _mymeta_from_meta {
# rolled their own tarball rather than using "make dist".
if ($meta->{generated_by} &&
$meta->{generated_by} =~ /ExtUtils::MakeMaker version ([\d\._]+)/) {
my $eummv = do { no warnings; $1+0; };
my $eummv = do { no warnings; eval("$1") + 0; }; # deal with underbars gracefully
if ($eummv < 6.2501) {
return;
}
Expand Down

0 comments on commit f426c6e

Please sign in to comment.