hi era,
thanks for your quick response.
i am getting one error.
"Illegal division by zero at cp.pl line 16, <> line 2."
line 16= print ++$block, " ", $count, " ", $sum/$count, "\n";
input file:
3:13:09 B 32
3:14:01 B 51
3:14:03 A 100
3:20:00 A 77
3:20:01 A 22
3:20:02 A 44
3:20:03 A 35
3:20:03 B 17
3:20:04 B 2
3:20:05 A 65
3:20:06 B 51
3:20:07 A 100
3:20:08 A 77
3:20:09 A 22
3:20:10 A 44
3:20:10 A 35
3:20:11 B 17
3:20:12 B 2