use file_read; my $a=0; while(){ $a+=1; } print "$a";