Package Perl::Critic::Policy::DE_EPAGES::Style::RequireLexicalLoopIteratorsForLongBlocks
This module checks for new lexical variables in for/foreach loops. Write for my $element (@list) {...} instead of for $element (@list) {...}! See: http://search.cpan.org/~elliotjs/Perl-Critic-1.105/lib/Perl/Critic/ Policy/Variables/RequireLexicalLoopIterators.pm This policy was modified to thow the violation only on large blocks, because on 3-4 liners, the content should be straightforward and an additional variable would be not necessary. §parameters §parameters function_lines - to number of lines to thread a block as large