in reply to How can I round up if any decimal place exists?

I've often used the following for counting pages, when $total is an integer number of rows:
use constant ROWS_PER_PAGE => 20; my $pageCount = int(($total + ROWS_PER_PAGE - 1) / ROWS_PER_PAGE);
Using the constant, BTW, lets you change your mind easily if your pages grow or shrink.