in reply to Re: subtract two columns from perl arrays
in thread subtract two columns from perl arrays

A Perl style for loop to iterate over the indices is clearer and more Perlish (whatever that means) ;).

True laziness is hard work
  • Comment on Re^2: subtract two columns from perl arrays

Replies are listed 'Best First'.
Re^3: subtract two columns from perl arrays
by dbuckhal (Chaplain) on Nov 12, 2013 at 04:18 UTC
    ...and within that "Perl style" loop, insert the "pseudocode" you wrote above:
    "i need to subtract first row second column from array1 with first row second column from array2 and goes on for all the rows assign the difference to a variable"
    Two arrays, subtraction operation, assigning the difference to a variable. I'd say you are more than halfway towards a solution. :)