ng0177 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, further on to multiplication a column of data in csv file by a factor I am trying now to add an index column to that data (sole purpose to know the index when sorting the multi_array to find its maximum value). But I cannot figure out how to increment the counter when adding the third data column. $i++ fails.
$_->[2] = $i++ for @multi_array;Appreciate your advice!
|
|---|