in reply to Keeping one colmun fixed and second column changed at different intervals to print the output
Produces:use warnings; use strict; while(<DATA>){ printf("%d %04.2f %3d\n",split()) } __DATA__ 1 0.4 2 1 0.2 -5 1 0.1 -18 1 0.11 7 0 0.13 10 0 0.22 11
Or maybe investigate format.1 0.40 2 1 0.20 -5 1 0.10 -18 1 0.11 7 0 0.13 10 0 0.22 11
|
|---|