diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-04-07 12:31:16 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-04-07 12:31:16 +0200 |
commit | 55b6781562aff32ef6499c4f263ab251254ca5cb (patch) | |
tree | d6e518628983def34281f18c57ccada4991714ba /pod/perlvar.pod | |
parent | f67e8e0b613ff0f60cec100cef479f7e4c895e84 (diff) | |
download | perl-55b6781562aff32ef6499c4f263ab251254ca5cb.tar.gz |
Deprecate assignment to $[
Based on a patch by James Mastros :
Subject: Deprecating $[
Message-ID: <abc933c50904020726x31776ab5m192036429af16f03@mail.gmail.com>
Diffstat (limited to 'pod/perlvar.pod')
-rw-r--r-- | pod/perlvar.pod | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 914eebe2b3..7c61a05096 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -1037,8 +1037,9 @@ 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. +(That's why you can only assign compile-time constants to it.) Its +use is deprecated, and will trigger a warning (if the deprecation +L<warnings> category is enabled. You did C<use warnings>, right?) Note that, unlike other compile-time directives (such as L<strict>), assignment to C<$[> can be seen from outer lexical scopes in the same file. |