summaryrefslogtreecommitdiff
path: root/pod/perlvar.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-04-07 12:31:16 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-04-07 12:31:16 +0200
commit55b6781562aff32ef6499c4f263ab251254ca5cb (patch)
treed6e518628983def34281f18c57ccada4991714ba /pod/perlvar.pod
parentf67e8e0b613ff0f60cec100cef479f7e4c895e84 (diff)
downloadperl-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.pod5
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.