in reply to Re^5: Closure warning with Perl 5.14?
in thread Closure warning with Perl 5.14?

To allow stuff like the following?

print(my $x = 1234) if COND;

Which is to say, they probably didn't want to step on anything that has remote chance of being legit.

Replies are listed 'Best First'.
Re^7: Closure warning with Perl 5.14?
by JavaFan (Canon) on May 19, 2011 at 10:56 UTC
    But my $x if COND; doesn't warn either, unless COND is false. Not sure what print(my $x = 1234) if 0; would be good for. Note also that print(my $x = 1234) if COND; does not have a my $x = EXPR if COND subexpression, not even on a textual level.