From e1dccc0d34a90e3511bfed596be9d78128ca7ee7 Mon Sep 17 00:00:00 2001 From: Zefram Date: Fri, 9 Sep 2011 23:27:16 +0100 Subject: remove index offsetting ($[) $[ remains as a variable. It no longer has compile-time magic. At runtime, it always reads as zero, accepts a write of zero, but dies on writing any other value. --- pod/perldata.pod | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pod/perldata.pod') diff --git a/pod/perldata.pod b/pod/perldata.pod index f34979cef1..6d0fa0b21f 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -251,14 +251,6 @@ which return whatever they feel like returning.) The following is always true: X - scalar(@whatever) == $#whatever - $[ + 1; - -Version 5 of Perl changed the semantics of C<$[>: files that don't set -the value of C<$[> no longer need to worry about whether another -file changed its value. (In other words, use of C<$[> is deprecated.) -So in general you can assume that -X<$[> - scalar(@whatever) == $#whatever + 1; Some programmers choose to use an explicit conversion so as to -- cgit v1.2.1