It's not clear to me why you are sorting, reversing etc. A simple while loop will suffice:
while (my @row = split / /, <DATA>) { $row[1] *= 1.1E3; printf("%E %E %E\n", @row); } exit; __DATA__ 1.10000E0 1.00000E0 1.00000E0 2.20000E0 2.00000E0 2.00000E0 3.30000E0 3.00000E0 3.00000E0
In reply to Re: multiplication a column of data in csv file by a factor
by hippo
in thread multiplication a column of data in csv file by a factor
by ng0177
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |