HTML::Paginator Has an example directly on that man page. In general thought pageing is just a matter of knowing where you are in a set, and showing X number of elements after that. If you aren't at the beginning then have a back button that moves you back X places, if you aren't at the end then move ahead X places. If you want to be fancy and have a list of pages then devide the total number of elements by X and make that many links each moving the cursor to the correct place in the set.