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::BuiltinFunctions::ProhibitVoidMap"

Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap - Don't use map in void contexts. River stage three • 133 direct dependents • 408 total dependents

"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.152 - 17 Oct 2023 04:09:08 UTC
1 result (0.051 seconds)