in reply to Re: count number of pages in two datafilesin thread count number of pages in two datafiles
my $linesperpage=56; my $pagecount; if ($linecount%$linesperpage == 0) { $pagecount = $linecount/$linesperpage; } else { $pagecount = int($linecount/$linesperpage) +1; } [download]