|
|
| Do you know where your variables are? | |
| PerlMonks |
Find column number for the row-wise max valueby jaksow (Initiate) |
| on Feb 29, 2012 at 15:48 UTC ( #956961=perlquestion: print w/ replies, xml ) | Need Help?? |
|
jaksow has asked for the
wisdom of the Perl Monks concerning the following question:
Hi,
I'm quite new to Perl and would like to ask: How do I retrieve, row-wise, the column number of the entry that has the largest value?
For example, let's say that I have the following dataset:
row_id;value1;value2;value3
I then want my code to return: because these are the column numbers that correspond to the column which contain the row-wise maximum. Thank you!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||