Change 14774 by jhi@alpha on 2002/02/19 15:18:03
Subject: Re: {PATCH] Re: Lexical scoping bug with EXPR for EXPR?
From: Dave Mitchell <[EMAIL PROTECTED]>
Date: Tue, 19 Feb 2002 16:07:52 +0000 (GMT)
Message-Id: <[EMAIL PROTECTED]>
Affected files ...
.... //depot/perl/pod/perlsub.pod#43 edit
Differences ...
==== //depot/perl/pod/perlsub.pod#43 (text) ====
Index: perl/pod/perlsub.pod
--- perl/pod/perlsub.pod.~1~ Tue Feb 19 08:30:06 2002
+++ perl/pod/perlsub.pod Tue Feb 19 08:30:06 2002
@@ -328,10 +328,10 @@
but not beyond it.
B<NOTE:> None of the foregoing text applies to C<if/unless>,
-C<while/until> or C<for> modifiers appended to simple statements. Such
-modifiers are not control structures and have no effect on scoping. Use
-of such modifiers in conjunction with C<my> may have unexpected effects,
-and are best avoided. A future release of Perl may define precise
+C<while/until> or C<for> modifiers appended to simple statements. Such
+modifiers are not control structures and have no effect on scoping. The
+use of such modifiers in conjunction with C<my> is best avoided, as it may
+have unexpected effects. A future release of Perl may define precise
semantics for constructs such as C<my $foo = 1 if $bar>.
The C<foreach> loop defaults to scoping its index variable dynamically
End of Patch.