From: Graham Knop Date: Fri, 30 Jan 2015 10:53:58 +0000 (-0500) Subject: fix perl version conditional X-Git-Tag: v1.005006~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=85ba5ac73f06531ccee9b6f4ec67134feda13b47;p=p5sagit%2Fstrictures.git fix perl version conditional --- diff --git a/lib/strictures.pm b/lib/strictures.pm index 4bad910..75eaf54 100644 --- a/lib/strictures.pm +++ b/lib/strictures.pm @@ -37,10 +37,10 @@ sub import { . "please unset \$ENV{PERL_STRICTURES_EXTRA}\n"; } $ENV{PERL_STRICTURES_EXTRA}; - } elsif (_PERL_LT_5_8_4) { + } elsif (! _PERL_LT_5_8_4) { (caller)[1] =~ /^(?:t|xt|lib|blib)[\\\/]/ and defined $Smells_Like_VCS ? $Smells_Like_VCS - : ( $Smells_Like_VCS = ( + : ( $Smells_Like_VCS = !!( -e '.git' || -e '.svn' || -e '.hg' || (-e '../../dist.ini' && (-e '../../.git' || -e '../../.svn' || -e '../../.hg' ))