in reply to Re^3: Managing capture
in thread Managing capture
You can base your policy on Perl::Critic::Policy::Variables::ProhibitConditionalDeclarations - Do not write my $foo = $bar if $baz; .
I found it via perlcritic closure -> Closure warning with Perl 5.14?
While using closures isn't exactly a red flag, it should be on the list of traps for code/module evaluation
:) I got my links in :)
In Section
Seekers of Perl Wisdom