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 :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Managing capture
by Anonymous Monk on Feb 19, 2013 at 14:06 UTC |