Author: larry Date: Tue Oct 10 12:10:23 2006 New Revision: 13015 Modified: doc/trunk/design/syn/S03.pod
Log: Forgot to update version and date. Also forgot to mention self-extending lists using *. :) Modified: doc/trunk/design/syn/S03.pod ============================================================================== --- doc/trunk/design/syn/S03.pod (original) +++ doc/trunk/design/syn/S03.pod Tue Oct 10 12:10:23 2006 @@ -12,9 +12,9 @@ Maintainer: Larry Wall <[EMAIL PROTECTED]> Date: 8 Mar 2004 - Last Modified: 28 Sept 2006 + Last Modified: 10 Oct 2006 Number: 3 - Version: 69 + Version: 70 =head1 Changes to Perl 5 operators @@ -501,6 +501,16 @@ Note: infinite lists are constructed lazily. And even though C<*..*> can't be constructed at all, it's still useful as a selector object. +For any kind of zip or dwimmy hyper operator, any list ending with C<*> +is assumed to be infinitely extensible by taking its final element +and replicating it: + + @array, * + +is short for something like: + + @[EMAIL PROTECTED], @array[-1] xx * + =item * The unary C<^> operator generates a range from C<0> up to one less than its argument. So C<^4> is short for C<0..^4> or C<0..3>.