Help for this page

Select Code to Download


  1. or download this
    use strict;
    my @array1=qw(1 2 3 4);
    ...
               print $array1[$i] - $array2[$i],"\n";
               $i++;
               }
    
  2. or download this
    #Descending 
    my $i = $#array1+1; 
    ...
    # my $i = @array1;
    
    print $array1[$i] -$array2[$i],"\n" while $i--;