You might want to take a look at HTML::Pager.
In reply to Re: page by page problem by dHarry in thread page by page problem by sanku