perlvar: document what $[ will do under use v5.16
authorFather Chrysostomos <sprout@cpan.org>
Thu, 15 Dec 2011 05:43:38 +0000 (21:43 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 16 Dec 2011 00:15:31 +0000 (16:15 -0800)
pod/perlvar.pod

index 68d2acf..63a4dc8 100644 (file)
@@ -2103,6 +2103,10 @@ block.  Now it is always lexically scoped.
 As of Perl 5.16, it is implemented by the L<arybase> module.  See
 L<arybase> for more details on its behaviour.
 
+Under C<use v5.16>, or C<no feature "array_base">, C<$[> no longer has any
+effect, and always contains 0.  Assigning 0 to it is permitted, but any
+other value will produce an error.
+
 Mnemonic: [ begins subscripts.
 
 Deprecated in Perl 5.12.