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

Perl::Critic::Policy::RegularExpressions::ProhibitCaptureWithoutTest - Capture variable used outside conditional. River stage three • 131 direct dependents • 386 total dependents

If a regexp match fails, then any capture variables ($1, $2, ...) will be unaffected. They will retain whatever old values they may have had. Therefore it's important to check the return value of a match before using those variables. '12312123' =~ /(...

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