Changeset 12999 for docs/Perl6/Perl5

Show
Ignore:
Timestamp:
09/03/06 23:30:12 (2 years ago)
Author:
wolverian
Message:

Add C<foo> to a few places, fix typos and other small nits.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/Perl6/Perl5/Differences.pod

    r12958 r12999  
    4848For details, see L<S02/"Names and Variables">. 
    4949 
    50 =head2 Global Variables have a twigil 
     50=head2 Global variables have a twigil 
    5151 
    5252Yes, a twigil. It's the second character in the variable name. For globals, 
     
    9191See L<S02/"double-underscore forms are going away"> for details. 
    9292 
    93  
    9493=cut  
    9594 
     
    9897=head1 Operators 
    9998 
    100 A comprehensive list of operator changes are documented here: 
    101  
    102 L<S03/"Changes to Perl 5 operators"> 
    103 L<S03/"New operators"> 
     99A comprehensive list of operator changes is documented at L<S03/"Changes to 
     100Perl 5 operators"> and L<S03/"New operators">. 
    104101 
    105102Some highlights: 
    106103 
    107 =head2 qw() has a customary form; new interpolating form 
     104=head2 C<qw()> has a customary form; new interpolating form 
    108105 
    109106    Was:    qw(foo) 
     
    113110    Now:    <<foo $bar bat>> 
    114111 
    115 Quoting operators now have modifiers that can be used with them (much 
    116 like regexes and substitutions in Perl 5), and you can even define 
    117 your own quoting operators.  See S03 for details. 
     112Quoting operators now have modifiers that can be used with them (much like 
     113regexes and substitutions in Perl 5), and you can even define your own quoting 
     114operators.  See L<S03> for details. 
    118115 
    119116=cut 
     
    165162    Now:    for @whatever -> $age, $sex, $location { ... } 
    166163 
    167 (Only the C<for> version does not destroy the array.) 
     164(Except the C<for> version does not destroy the array.) 
    168165 
    169166See L<S04/"The for statement"> and L<S29/"each"> for details. 
     
    190187    Now:    $str ~~ m:P5:i/^\d{2,5}\s/ 
    191188 
    192 The 'P5' modifier is there because the standard Perl6 syntax is rather 
     189The C<:P5> modifier is there because the standard Perl6 syntax is rather 
    193190different, and 'P5' notes a Perl5 compatibility syntax.  For the full 
    194191specification, see L<S05>. See also: 
     
    198195  http://dev.perl.org/perl6/doc/design/apo/A05.html  
    199196 
    200 And the related Exegesis, wihch explains it more detail: 
     197And the related Exegesis, which explains it more detail: 
    201198 
    202199  http://dev.perl.org/perl6/doc/design/exe/E05.html 
     
    310307L<S29/"Obsolete"> 
    311308 
    312 =head2 references are gone / everything is a reference 
     309=head2 References are gone (or: everything is a reference) 
    313310 
    314311C<Capture> objects fill the ecological niche of references in Perl 6. 
     
    339336=head2 say() 
    340337 
    341 This is a version of print() that auto-appends a newline: 
     338This is a version of C<print> that auto-appends a newline: 
    342339 
    343340    Was:    print "Hello, world!\n"; 
     
    367364 
    368365Most (all?) built-in functions are now methods of built-in classes such 
    369 as String, Array, etc. 
     366as C<String>, C<Array>, etc. 
    370367 
    371368    Was:    my $len = length($string);