Author: audreyt Date: Sun Sep 3 10:04:00 2006 New Revision: 11725 Modified: doc/trunk/design/syn/S03.pod
Log: * S03: Clarify that this: my Dog ($x, $y) really means the same as: my (Dog $x, Dog $y) Modified: doc/trunk/design/syn/S03.pod ============================================================================== --- doc/trunk/design/syn/S03.pod (original) +++ doc/trunk/design/syn/S03.pod Sun Sep 3 10:04:00 2006 @@ -12,9 +12,9 @@ Maintainer: Larry Wall <[EMAIL PROTECTED]> Date: 8 Mar 2004 - Last Modified: 16 Aug 2006 + Last Modified: 4 Sep 2006 Number: 3 - Version: 56 + Version: 57 =head1 Changes to Perl 5 operators @@ -1117,6 +1117,12 @@ my ($b, $c); # okay my $b, $c; # wrong: "Use of undeclared variable: $c" +Types occuring between the declarator and the signature are distributed into +each variable: + + my Dog ($b, $c); + my (Dog $b, Dog $c); # same thing + [XXX the following probably belongs in S06.] The syntax for constructing a C<Signature> object when the parser isn't already expecting one is: