From: Rafael Garcia-Suarez Date: Sun, 27 Apr 2003 19:35:11 +0000 (+0000) Subject: $[ clarifications. X-Git-Tag: accepted/trunk/20130322.191538~24322 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f83ed19842c1a7c71229dd090f299e643e1fe3fb;p=platform%2Fupstream%2Fperl.git $[ clarifications. p4raw-id: //depot/perl@19354 --- diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 571953f..3b9ed06 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -883,8 +883,14 @@ subscripting and when evaluating the index() and substr() functions. As of release 5 of Perl, assignment to C<$[> is treated as a compiler directive, and cannot influence the behavior of any other file. +(That's why you can only assign compile-time constants to it.) Its use is highly discouraged. +Note that, unlike other compile-time directives (such as L), +assignment to $[ can be seen from outer lexical scopes in the same file. +However, you can use local() on it to strictly bound its value to a +lexical block. + =item $] The version + patchlevel / 1000 of the Perl interpreter. This variable