X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FB%2FB%2FLint.pm;h=1510d365cdc9254475974a498075a8546060ad8d;hb=1f01d15689eebf8cac0437bd6198b0ee0e3a2c33;hp=ed0d07dfcbd6c2db43837af29596d53206dc8895;hpb=57843af05bc7863df9b9bfb6b37e3a29d08532a9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/B/B/Lint.pm b/ext/B/B/Lint.pm index ed0d07d..1510d36 100644 --- a/ext/B/B/Lint.pm +++ b/ext/B/B/Lint.pm @@ -1,5 +1,7 @@ package B::Lint; +our $VERSION = '1.01'; + =head1 NAME B::Lint - Perl lint @@ -162,7 +164,7 @@ sub gimme { my $op = shift; my $flags = $op->flags; if ($flags & OPf_WANT) { - return(($flags & OPf_WANT_LIST) ? 1 : 0); + return(($flags & OPf_WANT == OPf_WANT_LIST) ? 1 : 0); } return undef; } @@ -345,7 +347,7 @@ sub compile { %check = (); } else { - if ($opt =~ s/^no-//) { + if ($opt =~ s/^no_//) { $check{$opt} = 0; } else {