Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
go ahead... be a heretic
 
PerlMonks  

Re: Re: count number of pages in two datafiles

by data67 (Monk)
on Aug 23, 2001 at 14:47 UTC ( [id://107345]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 14: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; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://107345]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.