This complains about uninitialized value (of course), but gives no warning in 5.14.0:
use warnings; use strict; use constant duh => 0; my $y = "X" if duh; sub x{ print $y ? 'Okay' : 'bad'; } x(); print "$y\n";
And no warning even for this:
use warnings; use strict; my $y = "X" if 0; sub x{ print $y ? 'Okay' : 'bad'; } x(); print "$y\n";
In reply to Re^4: Closure warning with Perl 5.14?
by BerntB
in thread Closure warning with Perl 5.14?
by BerntB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |