Help for this page

Select Code to Download


  1. or download this
    %hash{@array} >>++
    
  2. or download this
    %hash{$_}++ for @array
    
  3. or download this
    @added = @array1 >>+<< @array2;
    
  4. or download this
    ## p5 code, I'm not completely fluent in p6 yet...
    
    for ( my $i = 0; i < $#array1; i++ ) {
       $added[ $i ] = $array1[ $i ] + $array2[ $i ]
    }