in reply to Handling paged results

Look at HTML::Pager