Search results for "module:Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap"
Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap - Don't use map in void contexts.
"map" and "grep" are intended to be pure functions, not mutators. If you want to iterate with side-effects, then you should use a proper "for" or "foreach" loop. grep{ print frobulate($_) } @list; #not ok print map{ frobulate($_) } @list; #ok grep{ $...
PETDANCE/Perl-Critic-1.150 - 05 Mar 2023 03:28:32 UTC