in reply to Re: calculating linesin thread calculating lines
my $linecount = $. ; [download]
$wc += split; within the while loop will do it. That's another case of default arguments.
After Compline,Zaxo