Search results for "module:Perl::Critic::Policy::ControlStructures::ProhibitUntilBlocks"
Perl::Critic::Policy::ControlStructures::ProhibitUntilBlocks - Write while(! $condition) instead of until($condition).
Conway discourages using "until" because it leads to double-negatives that are hard to understand. Instead, reverse the logic and use "while". until($condition) { do_something() } #not ok until(! $no_flag) { do_something() } #really bad while( ! $con...
PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC