in reply to Re: count number of pages in two datafiles
in thread count number of pages in two datafiles

oh, i am sorry a page has 56 lines
  • Comment on Re: Re: count number of pages in two datafiles

Replies are listed 'Best First'.
Re: Re: Re: count number of pages in two datafiles
by scain (Curate) on Aug 23, 2001 at 18:53 UTC
    Ok, then once you have $linecount (from whatever method), find the number of pages with
    my $linesperpage=56; my $pagecount; if ($linecount%$linesperpage == 0) { $pagecount = $linecount/$linesperpage; } else { $pagecount = int($linecount/$linesperpage) +1; }