Author: larry Date: Fri Jun 16 09:55:37 2006 New Revision: 9676 Modified: doc/trunk/design/syn/S03.pod Log: Clarified when circumfix parens are simple, and when not. Modified: doc/trunk/design/syn/S03.pod ============================================================================== --- doc/trunk/design/syn/S03.pod (original) +++ doc/trunk/design/syn/S03.pod Fri Jun 16 09:55:37 2006 @@ -12,9 +12,9 @@ Maintainer: Larry Wall <larry@wall.org> Date: 8 Mar 2004 - Last Modified: 15 Jun 2006 + Last Modified: 16 Jun 2006 Number: 3 - Version: 39 + Version: 40 =head1 Changes to existing operators @@ -136,6 +136,7 @@ ~TERM # any single term coerced to string ?TERM # any single term coerced to boolean !TERM # any single term coerced to boolean + (SIMPLE) # any simple expression in circumfix parens We also include: @@ -168,6 +169,10 @@ in parsing is only an issue if C<bar()> is followed by a comma or some such.) +Note that circumfix parens are considered simple only when used as part of a +subscript. Parens around the entire lvalue still imples list context as in +Perl 5. + =item * List operators are all parsed consistently. As in Perl 5, to the left they look like terms, while to the right they look like operators that are looser than comma. Unlike in Perl 5, the difference