Author: autrijus
Date: Wed Apr 5 22:30:44 2006
New Revision: 8573
Modified:
doc/trunk/design/syn/S02.pod
Log:
* S02: fix the three places where the old form:
$x .(...)
needs to be replaced to the new form:
$x. (...)
Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod (original)
+++ doc/trunk/design/syn/S02.pod Wed Apr 5 22:30:44 2006
@@ -358,7 +358,7 @@
whatever was to their left. Whitespace is not allowed between a
variable name and its subscript. However, there is a corresponding
B<dot> form of each subscript (C<@foo.[1]> and C<%bar.{'a'}>) which
-allows optional whitespace before the dot (except when interpolating).
+allows optional whitespace after the dot (except when interpolating).
Constant string subscripts may be placed in angles, so C<%bar.{'a'}>
may also be written as C<< %bar<a> >> or C<< %bar.<a> >>.
@@ -449,9 +449,9 @@
&foo($arg1, $arg2);
Whitespace is not allowed before the parens, but there is a corresponding
-C<.()> operator, which allows you to insert optional whitespace before the dot:
+C<.()> operator, which allows you to insert optional whitespace after the dot:
- &foo .($arg1, $arg2);
+ &foo. ($arg1, $arg2);
=item *
@@ -1316,15 +1316,15 @@
pairs. To align values of option pairs, you may not use the
dot postfix forms:
- :longkey .($value)
- :shortkey .<string>
- :fookey .{ $^a <=> $^b }
+ :longkey. ($value)
+ :shortkey. <string>
+ :fookey. { $^a <=> $^b }
These will be interpreted as
- :longkey(1) .($value)
- :shortkey(1) .<string>
- :fookey(1) .{ $^a <=> $^b }
+ :longkey(1). ($value)
+ :shortkey(1). <string>
+ :fookey(1). { $^a <=> $^b }
You just have to put spaces inside the parenthesis form to align things.