X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstrictures.pm;h=64b927d02b3f0d7b73e87adceba308afc66a6166;hb=be9a89ec6388e7de9747ef2118a989156587f79b;hp=628a543df80f7391d81fb4bbbd24fb1df44a5123;hpb=b87194d6b37242e308711e7be6b4d79f43023ade;p=p5sagit%2Fstrictures.git diff --git a/lib/strictures.pm b/lib/strictures.pm index 628a543..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.000003'; -$VERSION = eval $VERSION; +our $VERSION = '2.000005'; +$VERSION =~ tr/_//d; our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( closure @@ -19,6 +19,7 @@ our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( deprecated exiting experimental + experimental::alpha_assertions experimental::autoderef experimental::bitwise experimental::const_attr @@ -26,9 +27,11 @@ our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( 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 @@ -59,6 +62,7 @@ our @WARNING_CATEGORIES = grep { exists $warnings::Offsets{$_} } qw( inplace internal malloc + shadow signal substr syntax @@ -247,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