X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstrictures.pm;h=64b927d02b3f0d7b73e87adceba308afc66a6166;hb=be9a89ec6388e7de9747ef2118a989156587f79b;hp=79ffcc011465b815308f40b07c3aac5a0e71063b;hpb=da50db3f44b8220b3184875b17104e565b42cd3d;p=p5sagit%2Fstrictures.git diff --git a/lib/strictures.pm b/lib/strictures.pm index 79ffcc0..64b927d 100644 --- a/lib/strictures.pm +++ b/lib/strictures.pm @@ -4,14 +4,14 @@ use strict; use warnings FATAL => 'all'; BEGIN { - *_PERL_LT_5_8_4 = ($] < 5.008004) ? sub(){1} : sub(){0}; + *_PERL_LT_5_8_4 = ("$]" < 5.008004) ? sub(){1} : sub(){0}; # goto &UNIVERSAL::VERSION usually works on 5.8, but fails on some ARM # machines. Seems to always work on 5.10 though. - *_CAN_GOTO_VERSION = ($] >= 5.010000) ? sub(){1} : sub(){0}; + *_CAN_GOTO_VERSION = ("$]" >= 5.010000) ? sub(){1} : sub(){0}; } -our $VERSION = '2.000001'; -$VERSION = eval $VERSION; +our $VERSION = '2.000005'; +$VERSION =~ tr/_//d; our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( closure @@ -19,15 +19,19 @@ our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( deprecated exiting experimental + experimental::alpha_assertions experimental::autoderef experimental::bitwise experimental::const_attr + experimental::declared_refs experimental::lexical_subs experimental::lexical_topic experimental::postderef + experimental::private_use experimental::re_strict experimental::refaliasing experimental::regex_sets + experimental::script_run experimental::signatures experimental::smartmatch experimental::win32_perlio @@ -58,6 +62,7 @@ our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( inplace internal malloc + shadow signal substr syntax @@ -246,7 +251,7 @@ EOE __END__ =head1 NAME -strictures - turn on strict and make most warnings fatal +strictures - Turn on strict and make most warnings fatal =head1 SYNOPSIS