in reply to paging in perl

I can't find a link to the previous discussion on this, but the simplest answer is, pass an offset as a hidden field in your page. If you're pulling rows from a database, the SQL 'LIMIT' command (or your database's equivalent) will come in handy.

If you're looping through an array, just do what comes naturally.

my $offset = $q->param('offset'); $offset ||= 0; print "<p>$_</p>" foreach (@results[ $offset .. ($offset + $max) ]);
That's untested code, by the way.