But shouldn't there be a warning in 5.12?
Perhaps this is a new warning for old problem added in 5.14 to help us.
I don't get a warning from this in 5.14.0: ...
No. There is no closure involved there.
Try:
use warnings; use strict; my $x = <>; my $y = "X" if $x =~ /X/; sub x{ print $y ? 'Okay' : 'bad'; } print "$y\n";
In reply to Re^3: Closure warning with Perl 5.14?
by BrowserUk
in thread Closure warning with Perl 5.14?
by BerntB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |