in reply to Re^2: Should "use strict" complain if I use a variable that is not declared?
in thread Should "use strict" complain if I use a variable that is not declared?
The only complication would be backwards compatibility. People rely on the behaviour of a conditionally executed my even though the docs have long warned against it.
sub foo { my $x if 0; print ++$x, "\n"; } foo() for 1..3;
1 2 3
Note that using the hardcoded zero there warns Deprecated use of my() in false conditional.
|
|---|