in reply to Multi-Column Totals
will loop through each row, but then you lose the row number that you're on, if thats important. Also, this approach creates an anonymous array for the foreach to loop through. With big arrays this can be memory expensive.foreach my $row (@rows) { ... }
This approach just asks the array how big it is, and then may proceed like your original code.for my $i (0 .. $#rows) { ... # something with $rows[$i] }
|
|---|