I am having a problem and i need to print a report using PERL. Now problem is this that every data which i am printing in that must have specified byte.
Say - I am having A,B,C,D,E,F,G,H and Icolumn which need to to be printed in a flat file and it is having following requirements -
Column Name Length Position Type
A 1 1 Char
B 11 2 Integer
C 10 13 Char
D 8 23 Char
E 1 31 Char
F 150 32 Varchar
G 8 182 Date
H 40 190 Varchar
I 8 230 Date
Now every record length must be 238 bytes.
I am not having idea how can we do this. Can somebody help me in this ? We have to print this report in a while loop and every line of record must have 238 bytes.
Thanks in advance.....