use warnings; use strict; while(){ 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