Author: skids Date: 2009-06-09 23:21:33 +0200 (Tue, 09 Jun 2009) New Revision: 27050
Modified: docs/Perl6/Spec/S09-data.pod Log: Make 0..* versus 0..*-1 less confusing to spec greppers Modified: docs/Perl6/Spec/S09-data.pod =================================================================== --- docs/Perl6/Spec/S09-data.pod 2009-06-09 21:09:26 UTC (rev 27049) +++ docs/Perl6/Spec/S09-data.pod 2009-06-09 21:21:33 UTC (rev 27050) @@ -609,10 +609,11 @@ =head1 Negative and differential subscripts -The "whatever star" can also be treated as a number inside a -standard index, in which case it evaluates to the length of the -array. This provides a clean and consistent way to count back or -forwards from the end of an array: +The "whatever star" behaves differently than described above when +it is treated as a number inside a standard index. In this case +it evaluates to the length of the array. This provides a clean +and consistent way to count back or forwards from the end of an +array: @array[*-$N] # $N-th element back from end of array @array[*+$N] # $N-th element at or after end of array