jaksow has asked for the wisdom of the Perl Monks concerning the following question:
row_id;value1;value2;value3
id001;10;10;30
id002;30;20;50
id003;30;80;10
I then want my code to return:
3
3
2
because these are the column numbers that correspond to the column which contain the row-wise maximum.
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Find column number for the row-wise max value
by LanX (Saint) on Feb 29, 2012 at 16:10 UTC | |
|
Re: Find column number for the row-wise max value
by ikegami (Patriarch) on Feb 29, 2012 at 18:39 UTC | |
|
Re: Find column number for the row-wise max value
by mcdave (Beadle) on Feb 29, 2012 at 19:59 UTC | |
|
Re: Find column number for the row-wise max value
by JavaFan (Canon) on Feb 29, 2012 at 15:58 UTC | |
|
Re: Find column number for the row-wise max value
by Tux (Canon) on Mar 01, 2012 at 10:43 UTC | |
|
Re: Find column number for the row-wise max value
by ashokpj (Hermit) on Feb 29, 2012 at 16:53 UTC | |
|
Re: Find column number for the row-wise max value
by Marshall (Canon) on Mar 02, 2012 at 06:36 UTC | |
|
Re: Find column number for the row-wise max value
by vagabonding electron (Curate) on Mar 02, 2012 at 09:16 UTC |