diff options
author | Kenichi Ishigaki <ishigaki@cpan.org> | 2016-02-21 14:51:16 +0900 |
---|---|---|
committer | Kenichi Ishigaki <ishigaki@cpan.org> | 2016-02-21 14:51:16 +0900 |
commit | 4a750d9c5af062d4a2122a8e48a3fdefc12b48c0 (patch) | |
tree | a3cec59284e73a272ea3da6799ba94ec72468e68 /lib/Parse | |
parent | 05de8d6c9ab03af038155652f11e9ab632730b8d (diff) |
silenced 'alpha->numify() is lossy' warning
Diffstat (limited to 'lib/Parse')
-rw-r--r-- | lib/Parse/PMFile.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Parse/PMFile.pm b/lib/Parse/PMFile.pm index 596a2b4..ea8a9c8 100644 --- a/lib/Parse/PMFile.pm +++ b/lib/Parse/PMFile.pm @@ -254,6 +254,7 @@ sub _parse_version { } } if (defined $v) { + no warnings qw/version numeric/; $v = $v->numify if ref($v) =~ /^version(::vpp)?$/; } else { $v = ""; @@ -518,6 +519,7 @@ sub _packages_per_pmfile { $result = "undef" unless defined $result; if ((ref $result) =~ /^version(?:::vpp)?\b/) { + no warnings qw/version numeric/; $result = $result->numify; } return $result; @@ -628,6 +630,7 @@ sub _normalize_version { if ($forced eq $vv) { } elsif ($forced =~ /^v(.+)/) { # rare case where a v1.0.23 slipped in (JANL/w3mir-1.0.10.tar.gz) + no warnings qw/version numeric/; $vv = version->new($1)->numify; } else { # warn "Unequal forced[$forced] and vv[$vv]"; |