Changeset 23243

Show
Ignore:
Timestamp:
02/02/06 20:55:46 (3 years ago)
Author:
larry
Message:

Fixed s/=>/->/ typo in several spots.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/trunk/design/syn/S05.pod

    r23233 r23243  
    1414   Maintainer: Patrick Michaud <pmichaud@pobox.com> 
    1515   Date: 24 Jun 2002 
    16    Last Modified: 16 Nov 2005 
     16   Last Modified: 2 Feb 2006 
    1717   Number: 5 
    18    Version: 8 
     18   Version: 9 
    1919 
    2020This document summarizes Apocalypse 5, which is about the new regex 
     
    19581958         # of two subcaptures... 
    19591959 
    1960          for @{$<pairs>} => $pair { 
     1960         for @{$<pairs>} -> $pair { 
    19611961             say "Key: $pair[0]"; 
    19621962             say "Val: $pair[1]"; 
     
    19701970         # the two subcaptures within the subpattern 
    19711971 
    1972          for @{$<pairs>} => $key, $val { 
     1972         for @{$<pairs>} -> $key, $val { 
    19731973             say "Key: $key"; 
    19741974             say "Val: $val"; 
     
    19901990         # <pair> subrule call... 
    19911991 
    1992          for @{$<pairs>} => $pair { 
     1992         for @{$<pairs>} -> $pair { 
    19931993             say "Key: $pair[0]"; 
    19941994             say "Val: $pair[1]"; 
     
    20032003         # by each match of the <pair> subrule... 
    20042004 
    2005          for @{$<pairs>} => $key, $val { 
     2005         for @{$<pairs>} -> $key, $val { 
    20062006             say "Key: $key"; 
    20072007             say "Val: $val"; 
     
    20982098Outside the rule, C<%0> is a shortcut for C<%{$0}>: 
    20992099 
    2100          for %0 => $pair { 
     2100         for %0 -> $pair { 
    21012101             say "One:  $pair.key"; 
    21022102             say "Many: { @{$pair.value} }";