Search results for "module:Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything"
Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything - Always use the /s modifier with regular expressions.
When asked what "." in a regular expression means, most people will say that it matches any character, which isn't true. It's actually shorthand for "[^\n]". Using the "s" modifier makes "." act like people expect it to. my $match = m< foo.bar >xm; #...
PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC