]> git.donarmstrong.com Git - perltidy.git/commitdiff
fix perlcritic complaint
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 29 May 2022 19:19:39 +0000 (12:19 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 29 May 2022 19:19:39 +0000 (12:19 -0700)
lib/Perl/Tidy/Formatter.pm

index 597938ecc08b66dbf20d4775f8a55a11cb9c32ab..7687ffbc7752e0277de61495260f04d1d0cd4e60 100644 (file)
@@ -2307,7 +2307,7 @@ EOM
 
     # ignore kbb='(' : can cause unstable math formatting (issue b1346)
     if ( $short_name eq 'kbb' ) {
-        @list = grep { $_ !~ /\(/ } @list;
+        @list = grep { !m/\(/ } @list;
     }
 
     # pull out any any leading container code, like f( or *{