in reply to page by page problem

You might want to take a look at HTML::Pager.