Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: subtract two columns from perl arrays

by soonix (Curate)
on Nov 12, 2013 at 08:15 UTC ( #1062142=note: print w/ replies, xml ) Need Help??


in reply to subtract two columns from perl arrays

If you have @arrays, your problem may simply be wrong terminology. What you are seeing as two columns, probably are indices and values.
You could try

use strict; use warnings; use Data::Dumper; # your code for creating @array1 and @array2 goes here print Dumper(\@array1); print Dumper(\@array2);
and show us the output.


Comment on Re: subtract two columns from perl arrays
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062142]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-12-23 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (135 votes), past polls