Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Patch for S02

12 views
Skip to first unread message

Agent Zhang

unread,
Jul 19, 2006, 10:16:58 PM7/19/06
to perl6-l...@perl.org
Hi, all~

I found some nits while copying Perl 6 Synopsis 2 by hand. The patch
created by my TortoiseSVN for S02 has been pasted at the end of the
mail.

Cheers,
Agent

Index: D:/projects/Perl6-Syn/S02.pod

===================================================================

--- D:/projects/Perl6-Syn/S02.pod (revision 10313)

+++ D:/projects/Perl6-Syn/S02.pod (working copy)

@@ -743,8 +743,8 @@


$args = \3; # same as "$args = \(3)"
$$args; # same as "$args as Scalar" or "Scalar($args)"
- @$args; # same as '$args as Array" or "Array($args)"
- %$args; # same as '$args as Hash" or "Hash($args)"
+ @$args; # same as "$args as Array" or "Array($args)"
+ %$args; # same as "$args as Hash" or "Hash($args)"

When cast into an array, you can access all the positional arguments; into a
hash, all named arguments; into a scalar, its invocant.
@@ -789,7 +789,7 @@


Whitespace is not allowed before the parens, but there is a
corresponding C<.()> operator, plus the "long dot" forms that allow
-you to insert optional whitespace and comments between dots:
+you to insert optional whitespace and comments between the backslash and dot:

&foo\ .($arg1, $arg2);
&foo\#[
@@ -1064,7 +1064,7 @@

not see any lexical variables or their values, unless you copy those
values into C<%*ENV> to change what subprocesses see:

- temp %*ENV{LANG} = $+LANG; # may be modifed by parent
+ temp %*ENV{LANG} = $+LANG; # may be modified by parent
system "greet";

=item *

Audrey Tang

unread,
Jul 19, 2006, 11:02:40 PM7/19/06
to Agent Zhang, perl6-l...@perl.org

在 2006/7/19 下午 10:16 時,Agent Zhang 寫到:

> I found some nits while copying Perl 6 Synopsis 2 by hand. The patch
> created by my TortoiseSVN for S02 has been pasted at the end of the
> mail.

Thanks, applied as r10314.

Audrey

PGP.sig
0 new messages