I want to have a Perl script which convert columns to rows.
The Perl should should read the data from input file.
Suppose the input file is
7215484
date to date
173.3
A
1.50
2.23
8.45
10.14
2.00
4.50
2.50
31.32
7216154
month to month
182.7
A
1.50
2.36
8.91
10.69
2.00
4.50
4.16
34.11
7216184
case to case
179.6
A
1.50
2.32
8.76
10.51
2.00
4.50
4.16
33.75
7216254
done with no error
193.0
A
1.50
2.49
9.41
11.29
2.00
4.50
4.16
35.35
and the output file wanted is
7215484 "date to date" 173.3 A 1.50 2.23 8.45 10.14 2.00 4.50 2.50 31.32
7216154 "month to month" 182.7 A 1.50 2.36 8.91 10.69 2.00 4.50 4.16 34.11
7216184 "case to case" 179.6 A 1.50 2.32 8.76 10.51 2.00 4.50 4.16 33.75
7216254 "done with no error" 193.0 A 1.50 2.49 9.41 11.29 2.00 4.50 4.16 35.35