Changeset 9984 for docs/Perl6/FAQ

Show
Ignore:
Timestamp:
04/17/06 17:50:40 (3 years ago)
Author:
audreyt
Message:

* 17:49 < geoffb> audreyt, re: the unanswered Capture.pod question ... from what

you said abaove, I think my question, and the line 'say "The
color is $car_cap[1]"; # black' could just be stricken -- or
maybe add a note explaining that said line won't work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/Perl6/FAQ/Capture.pod

    r9976 r9984  
    5353 
    5454  # extracting a specific positional argument 
    55   say "The color is $car_cap[1]"; # black 
     55  say "The thing is $car_cap[0]"; # Model T 
    5656   
    5757  # or by name 
    5858  say "It has $car_cap<doors> doors" # 2 doors 
    59  
    60 =head3 Since a Capture is immutable (see below), how did C<$car_cap> gain knowledge of the default color of the car? 
    6159 
    6260=head3 How do I extract all positional arguments or all named arguments?