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

Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters - Use only // or {} to delimit regexps. River stage three • 131 direct dependents • 386 total dependents

Perl lets you delimit regular expressions with almost any character, but most choices are illegible. Compare these equivalent expressions: s/foo/bar/; # good s{foo}{bar}; # good s#foo#bar#; # bad s;foo;bar;; # worse s|\|\||\||; # eye-gouging bad...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC
1 result (0.173 seconds)