Login
Add suggestion of using lc() instead of case-insensitive match to
authorElliot Shank <perl@galumph.com>
Mon, 14 Mar 2011 20:24:18 +0000 (20:24 +0000)
committerElliot Shank <perl@galumph.com>
Mon, 14 Mar 2011 20:24:18 +0000 (20:24 +0000)
RegularExpressions::ProhibitFixedStringMatches.

lib/Perl/Critic/Policy/RegularExpressions/ProhibitFixedStringMatches.pm

index afb88e2..60b7fa6 100644 (file)
@@ -127,6 +127,8 @@ For larger numbers of strings, a hash is superior:
     );
     my $is_perl_keyword = $PERL_KEYWORD{$token};
 
+Conway also suggests using C<lc()> instead of a case-insensitive match.
+
 
 =head2 VARIANTS