in reply to Re^2: Request for Perl::Critic Testimonials (some weirdnesses of the module)
in thread Request for Perl::Critic Testimonials
Your comment contains many errors :( Yes, if i modify my code according to your recommendations, Perl::Critic will stop complaining—but my code will stop working :)
Your recommendation to use
is very weird. The using of /s and /m switches together causes a very unexpected interpretation of the RegEx:next if /^;/xms;
perlretut says:
both s and m modifiers (//sm): Treat string as a single long line, but detect multiple lines. '.' matches any character, even "\n". ^ and $, however, are able to match at the start or end of any line within the string.
Do you still think that it's a good idea to add /ms to the end of each regex?
Don't use local variables, use my. Don't the special variables like $", use the English module.use English qw( -no_match_vars ); my $LIST_SEPERATOR = q{|};
and then try to replace 'local' with 'my'.#!/usr/bin/perl use warnings; use strict; use English qw( -no_match_vars ); { local $LIST_SEPARATOR = q{!}; my @list = qw/this is my list/; print "@list\n"; }
|
|---|