I'll update my Best Practices.perlcritic detects this by default:
Perl::Critic::Policy::Variables::ProhibitConditionalDeclarationsVariable declared in conditional statement at line , column . Declare + variables outside of the condition. (Severity: 5)
In reply to Re^3: Closure warning with Perl 5.14? (perlcritic)
by toolic
in thread Closure warning with Perl 5.14?
by BerntB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |