in reply to Progress indicator during a filehandle while

You might also consider using $., the current line number of the last filehandle accessed, like so:
while(<DATA>){ print '.' if $. % 10 == 0; }