Help for this page

Select Code to Download


  1. or download this
    @res = map { $_ - shift(@arr2) } @arr1;
    
  2. or download this
    my $i = 0;
    @res = map { $_ - $arr2[$i++] } @arr1;