The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Search results for "module:Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything"

Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything - Always use the /s modifier with regular expressions. River stage three • 133 direct dependents • 408 total dependents

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
1 result (0.133 seconds)