agreen54 has asked for the wisdom of the Perl Monks concerning the following question:
I have two arrays and i need to subtract as below and assign the value to array
@array1 is below 1 3459 2 4568 3 5494 4 3489 @array2 is below 1 3459 2 4576 3 5498 4 3489
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 . example : 3459-3459 and 4568-4576, 5494-5498,3489-3489
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subtract two columns from perl arrays
by Athanasius (Archbishop) on Nov 12, 2013 at 03:25 UTC | |
by GrandFather (Saint) on Nov 12, 2013 at 03:42 UTC | |
by dbuckhal (Chaplain) on Nov 12, 2013 at 04:18 UTC | |
|
Re: subtract two columns from perl arrays
by GrandFather (Saint) on Nov 12, 2013 at 02:16 UTC | |
| |
|
Re: subtract two columns from perl arrays
by soonix (Chancellor) on Nov 12, 2013 at 08:15 UTC |