Author: autrijus Date: Mon May 1 08:43:47 2006 New Revision: 9069 Modified: doc/trunk/design/syn/S03.pod
Log: * S03: Correct the perl5ish "map" example to have an extra comma. 17:44 < TimToady> audreyt: foo {...} 1,2,3 is wrong, needs a comma. Modified: doc/trunk/design/syn/S03.pod ============================================================================== --- doc/trunk/design/syn/S03.pod (original) +++ doc/trunk/design/syn/S03.pod Mon May 1 08:43:47 2006 @@ -698,8 +698,8 @@ The new operators C<< ==> >> and C<< <== >> are akin to UNIX pipes, but work with functions that accept and return lists. For example, - @result = map { floor($^x / 2) } - grep { /^ \d+ $/ } + @result = map { floor($^x / 2) }, + grep { /^ \d+ $/ }, @data; Can also now be written: