|
|
| There's more than one way to do things | |
| PerlMonks |
Re^4: Managing captureby Anonymous Monk |
| on Feb 19, 2013 at 12:52 UTC ( #1019540=note: print w/ replies, xml ) | Need Help?? |
|
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
|
|
||||||||||||||||||||||