Changeset 12741 for docs/Perl6/Perl5

Show
Ignore:
Timestamp:
08/26/06 23:07:32 (2 years ago)
Author:
markstos
Message:

Add some practical examples of life without references to Differences.pod

Files:
1 modified

Legend:

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

    r12725 r12741  
    275275of correct examples.  
    276276 
    277 #=head2 references are now Capturers 
     277#=head2 references are now Captures 
    278278 
    279279C<Capture> objects fill the ecological niche of references in Perl 6. 
     
    287287  Now: $foo ~~ 'Hash' 
    288288 
    289   Was: ref $foo eq 'ARRAY' 
    290   Now: $foo ~~ 'Array' 
    291  
    292   Was: ref $foo eq 'CODE' 
    293   Now: $foo ~~ 'Code' 
     289  Was: @new = (ref $old eq 'ARRAY' ) ? @$old : ($old); 
     290  Now: @new = @$old; 
     291 
     292  Was: %h = ( k => \@a ); 
     293  Now: %h = ( k => @a ); 
    294294 
    295295The "obsolete" reference above has the details. Also, look for