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 reply to Re^4: Managing capture
by Anonymous Monk
in thread Managing capture
by jbert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |