Help for this page

Select Code to Download


  1. or download this
    @a = (1,1,1);
    @b = (2,2,2);
    foreach $i (0 .. $#a) {
      $a[$i] += $b[$i];
    }
    
  2. or download this
    @a = map $a[$i] + $_, @b;