in reply to Re^2: reading from middle of file
in thread reading from middle of file

print "The average is " . $total/$count . "\n";

-or a little more fun-

print "The average is @{[$total/$count]}\n";

but as you say this is floating point output so printf it:

printf ("The average is %2.2f",  $total/$count)

Cheers,
R.