http://www.perlmonks.org?node_id=994469


in reply to Re: Find highest value
in thread Find highest value

Thank you for your answer. But the last columns are classes and totals of classes, so I only want to find the maximum of the totals of classes. I should select only subset of the @values and put in array then, but this doesn't work:
push(@totals, values[1], values[3], values[5], values[7]);
Is there a way to do this? I want to find the class for which the total of class is the highest, and print the class name..