Author: autrijus Date: Wed Apr 19 06:01:46 2006 New Revision: 8877 Modified: doc/trunk/design/syn/S06.pod Log: * S06: two trivial syntax typos. Modified: doc/trunk/design/syn/S06.pod ============================================================================== --- doc/trunk/design/syn/S06.pod (original) +++ doc/trunk/design/syn/S06.pod Wed Apr 19 06:01:46 2006 @@ -779,7 +779,7 @@ argument list becomes a zero-dimensional slice. It differs from C<\()> in several ways: - sub foo (@;slices) {...} + sub foo (*@;slices) {...} foo; # +@;slices == 0 foo(); # +@;slices == 1 @@ -1188,9 +1188,9 @@ to indicate a signature. Otherwise you must at least put the sigil of the variable, or we can't correctly differentiate: - my Dog ($fido, $spot) = twodogs(); # list of two dogs + my Dog ($fido, $spot) := twodogs(); # list of two dogs my Dog $ ($fido, $spot) := twodogs(); # one twodog object - my Dog :($fido, $spot) := twodogs(); # one twodog object + my Dog :($fido, $spot) := twodogs(); # one twodog object Subsignatures can be matched directly with rules by using C<:(...)> notation.