in reply to Re^6: Closure warning with Perl 5.14?
in thread Closure warning with Perl 5.14?
? Either the if COND is redundant, because it's always true, or it maybe false and you have the same issue. Also,my $var if COND;
creates a "state" variable, yet there's no warning.my $var = 0 if 0;
Now, I'm usually not a fan of adding a warning for every little thing, but if there's a warning, it shouldn't be inconsistent on when it warns and when it doesn't.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Closure warning with Perl 5.14?
by John M. Dlugosz (Monsignor) on May 19, 2011 at 14:05 UTC |