From: Karen Etheridge Date: Fri, 20 Apr 2018 13:13:47 +0000 (+0200) Subject: use tr instead of eval on $VERSION X-Git-Tag: v2.000005~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Fstrictures.git;a=commitdiff_plain;h=032782991a89a1ab370bfc9c088290fb6108cc30 use tr instead of eval on $VERSION This way, trailing zeroes are preserved in the version. This might be important in some cases e.g. in metadata. --- diff --git a/lib/strictures.pm b/lib/strictures.pm index 5e12c82..2318aae 100644 --- a/lib/strictures.pm +++ b/lib/strictures.pm @@ -11,7 +11,7 @@ BEGIN { } our $VERSION = '2.000005'; -$VERSION = eval $VERSION; +$VERSION =~ tr/_//d; our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( closure