Welcome to the Monastery | |
PerlMonks |
Query of multi dimentional arrayby shabird (Sexton) |
on Mar 26, 2020 at 09:51 UTC ( [id://11114659]=perlquestion: print w/replies, xml ) | Need Help?? |
shabird has asked for the wisdom of the Perl Monks concerning the following question: Hello Monks, hope you all are fine I am struggling with multi dimensional array this time so basically the question goes like this, I have a file which has a data like this
So i have read the file and assigned it to multi dimensional array with the help of this code.
so this code prints every element in the same order but now i want to calculate the sum of numbers in each row and print that sum next to gene name i.e sum of values for ALA1 is 33 and sum of values for THR8 is 168 and so on. Now i have tried something like this.
But this is printing something like this
How can i achieve my desired result? thank you in advance
Back to
Seekers of Perl Wisdom
|
|