From: Dave Mitchell Date: Tue, 19 Feb 2002 10:30:30 +0000 (+0000) Subject: {PATCH] Re: Lexical scoping bug with EXPR for EXPR? X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5d6b5b93661d8e778bcde761acff338795b8e86c;p=p5sagit%2Fp5-mst-13.2.git {PATCH] Re: Lexical scoping bug with EXPR for EXPR? Message-Id: <200202191030.KAA24180@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@14769 --- diff --git a/pod/perlsub.pod b/pod/perlsub.pod index 8ec39e3..168f305 100644 --- a/pod/perlsub.pod +++ b/pod/perlsub.pod @@ -327,9 +327,12 @@ the scope of $answer extends from its declaration through the rest of that conditional, including any C and C clauses, but not beyond it. -None of the foregoing text applies to C or C -modifiers appended to simple statements. Such modifiers are not -control structures and have no effect on scoping. +B None of the foregoing text applies to C, +C or C 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 may have unexpected effects, +and are best avoided. A future release of Perl may define precise +semantics for constructs such as C. The C loop defaults to scoping its index variable dynamically in the manner of C. However, if the index variable is