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::ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions"

Perl::Critic::Policy::ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions - Don't use operators like not, !~, and le within until and unless. River stage three • 133 direct dependents • 408 total dependents

until ($foo ne 'blah') { #not ok ... } while ($foo eq 'blah') { #ok ... } A number of people have problems figuring out the meaning of doubly negated expressions. "unless" and "until" are both negative constructs, so any negative (e.g. "!~") or rever...

PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC
1 result (0.121 seconds)