Skip to content

Commit

Permalink
Merge pull request #11 from paultcochrane/pr/quieten-perlcritic-on-no…
Browse files Browse the repository at this point in the history
…-strict

Quieten perlcritic on necessary 'no strict' calls
  • Loading branch information
redhotpenguin committed Aug 9, 2018
2 parents c44ded5 + aa5c69e commit 2bdaca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/XML/Parser/Lite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sub setHandlers {
my $self = shift;

# allow symbolic refs, avoid "subroutine redefined" warnings
no strict 'refs';
no strict 'refs'; ## no critic
no warnings qw(redefine);
# clear all handlers if called without parameters
if (not @_) {
Expand Down Expand Up @@ -128,7 +128,7 @@ my $REGEXP = _regexp('??');
sub _parse_re {
use re "eval";
undef $^R;
no strict 'refs';
no strict 'refs'; ## no critic
1 while $_[0] =~ m{$REGEXP}go
};

Expand Down

0 comments on commit 2bdaca9

Please sign in to comment.