From: Graham Knop Date: Sun, 1 Feb 2015 20:08:53 +0000 (-0500) Subject: change to version 1.999_001, but set it to 2 at runtime X-Git-Tag: v1.999_001~1^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=07dc8b03715dd0cb8236a75d52481e21344e36df;p=p5sagit%2Fstrictures.git change to version 1.999_001, but set it to 2 at runtime Requesting strictures 2 is part of the API, so the runtime version needs to be >= 2. It's a bit of a cheat, but shouldn't break too much. --- diff --git a/lib/strictures.pm b/lib/strictures.pm index e553774..a715c60 100644 --- a/lib/strictures.pm +++ b/lib/strictures.pm @@ -7,8 +7,9 @@ BEGIN { *_PERL_LT_5_8_4 = ($] < 5.008004) ? sub(){1} : sub(){0}; } -our $VERSION = '2.000000'; +our $VERSION = '1.999_001'; $VERSION = eval $VERSION; +$VERSION = 2; # a bit of a cheat, but requesting v2 needs to be possible our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( closure